From 15bf6c95221b8a439c285a3f52db84597fb04b21 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 25 Feb 2023 00:03:24 +0100 Subject: src/arctica-greeter.vala: Don't assign new value to method argument. --- src/arctica-greeter.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index ccf873c..1fecc9e 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -266,6 +266,7 @@ public class ArcticaGreeter : Object var display = Gdk.Display.get_default(); var monitor = display.get_primary_monitor(); var scale = monitor.get_scale_factor (); + var _session = session; background_surface.set_device_scale (scale, scale); main_window.before_session_start(); @@ -277,16 +278,16 @@ public class ArcticaGreeter : Object return true; } - if (!session_is_valid (session)) + if (!session_is_valid (_session)) { - debug ("Session %s is not available, using system default %s instead", session, default_session_hint()); - session = default_session_hint(); + debug ("Session %s is not available, using system default %s instead", _session, default_session_hint()); + _session = default_session_hint(); } var result = false; try { - result = LightDM.greeter_start_session_sync (greeter, session); + result = LightDM.greeter_start_session_sync (greeter, _session); } catch (Error e) { -- cgit v1.2.3