File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public class QuickSettings.SessionBox : Gtk.Box {
6161 });
6262 } else {
6363 remove (settings_button);
64- remove (suspend_button );
64+ remove (lock_button );
6565 }
6666
6767 shutdown_button.clicked.connect (() => {
@@ -78,21 +78,9 @@ public class QuickSettings.SessionBox : Gtk.Box {
7878 try {
7979 system_interface. suspend (true );
8080 } catch (GLib . Error e) {
81- critical (" Unable to lock : %s " , e. message);
81+ critical (" Unable to suspend : %s " , e. message);
8282 }
8383 });
84-
85- if (server_type == GREETER ) {
86- lock_button. clicked. connect (() = > {
87- popover. popdown ();
88-
89- try {
90- system_interface. suspend (true );
91- } catch (GLib . Error e) {
92- critical (" Unable to lock: %s " , e. message);
93- }
94- });
95- }
9684 });
9785
9886 var keybinding_settings = new Settings (" org.gnome.settings-daemon.plugins.media-keys" );
You can’t perform that action at this time.
0 commit comments