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
@ -90,9 +90,13 @@ function _sessionUpdated() {
|
||||
Shell.KeyBindingMode.OVERVIEW,
|
||||
sessionMode.hasRunDialog ? openRunDialog : null);
|
||||
|
||||
if (!sessionMode.hasRunDialog && lookingGlass)
|
||||
if (!sessionMode.hasRunDialog) {
|
||||
if (runDialog)
|
||||
runDialog.close();
|
||||
if (lookingGlass)
|
||||
lookingGlass.close();
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
// These are here so we don't break compatibility.
|
||||
|
Loading…
Reference in New Issue
Block a user