diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-25 00:03:24 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-25 00:03:24 +0100 |
commit | 15bf6c95221b8a439c285a3f52db84597fb04b21 (patch) | |
tree | 04290904c381d2e9c2cce7088b489747afc8fedc /src/arctica-greeter.vala | |
parent | 4c6c65922ebed7cbf18e9b308217f34e20f4d13c (diff) | |
download | arctica-greeter-15bf6c95221b8a439c285a3f52db84597fb04b21.tar.gz arctica-greeter-15bf6c95221b8a439c285a3f52db84597fb04b21.tar.bz2 arctica-greeter-15bf6c95221b8a439c285a3f52db84597fb04b21.zip |
src/arctica-greeter.vala: Don't assign new value to method argument.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r-- | src/arctica-greeter.vala | 9 |
1 files changed, 5 insertions, 4 deletions
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) { |