mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
main: Close runDialog as necessary on session mode changes
We already do this for looking glass, but it makes even less sense for the normal run dialog - if a mode sets runDialog to false, the intention is to not allow executing aribitrary commands. https://bugzilla.gnome.org/show_bug.cgi?id=708218
This commit is contained in:
parent
2c00dad211
commit
efdf1ff755
1 changed files with 6 additions and 2 deletions
|
|
@ -90,8 +90,12 @@ function _sessionUpdated() {
|
|||
Shell.KeyBindingMode.OVERVIEW,
|
||||
sessionMode.hasRunDialog ? openRunDialog : null);
|
||||
|
||||
if (!sessionMode.hasRunDialog && lookingGlass)
|
||||
lookingGlass.close();
|
||||
if (!sessionMode.hasRunDialog) {
|
||||
if (runDialog)
|
||||
runDialog.close();
|
||||
if (lookingGlass)
|
||||
lookingGlass.close();
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue