system: prevent leaving the overview on system actions
Due to the fact that leaving the overview is an old behavior it is not deprecated and unnecessary for most actions, except the settings one. The settings system action opens an app, therefore leaving the overview makes sense. https://bugzilla.gnome.org/show_bug.cgi?id=691900
This commit is contained in:
parent
2339351499
commit
928d22a5b5
@ -445,13 +445,11 @@ var Indicator = new Lang.Class({
|
||||
|
||||
_onLockScreenClicked: function() {
|
||||
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
||||
Main.overview.hide();
|
||||
Main.screenShield.lock(true);
|
||||
},
|
||||
|
||||
_onLoginScreenActivate: function() {
|
||||
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
||||
Main.overview.hide();
|
||||
if (Main.screenShield)
|
||||
Main.screenShield.lock(false);
|
||||
|
||||
@ -462,13 +460,11 @@ var Indicator = new Lang.Class({
|
||||
},
|
||||
|
||||
_onQuitSessionActivate: function() {
|
||||
Main.overview.hide();
|
||||
this._session.LogoutRemote(0);
|
||||
},
|
||||
|
||||
_onPowerOffClicked: function() {
|
||||
this.menu.itemActivated();
|
||||
Main.overview.hide();
|
||||
this._session.ShutdownRemote(0);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user