summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2019-03-23 18:36:15 +0100
committersegfault <segfault@riseup.net>2019-03-23 18:36:28 +0100
commit7e1294556caef133a1aadea0380e5c0c59d25fbf (patch)
treed7e9911a123e6b8c44b47ef1f659b8b9fe4ffa8c
parent5b8d8974f21bcb58f54f39170c605773051a57e6 (diff)
status-menu-helper: Clean up code (refs: #14556)
-rw-r--r--config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js b/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js
index e411835..7610601 100644
--- a/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js
+++ b/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js
@@ -21,7 +21,6 @@
Raphael Freudiger <laser_b@gmx.ch>.
**/
const Lang = imports.lang;
-
const St = imports.gi.St;
const Main = imports.ui.main;
const BoxPointer = imports.ui.boxpointer;
@@ -125,20 +124,23 @@ const Extension = new Lang.Class({
},
_onPowerOffClicked: function() {
+ this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
Util.spawn(['sudo', '-n', 'poweroff'])
},
_onRestartClicked: function() {
+ this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
Util.spawn(['sudo', '-n', 'reboot'])
},
_onLockClicked: function() {
- this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
+ this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
Main.overview.hide();
- Util.spawn(['tails-screen-locker']);
+ Util.spawn(['tails-screen-locker']);
},
_onSuspendClicked: function() {
+ this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
Util.spawn(['systemctl', 'suspend'])
},