From 81dc903f7ab9ab018188a2790d3ff9cb36047d48 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Fri, 5 Jan 2018 14:11:04 +0000 Subject: [PATCH] Fixed destroying of keybindings... --- gnome-shell/firewall@subgraph.com/extension.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnome-shell/firewall@subgraph.com/extension.js b/gnome-shell/firewall@subgraph.com/extension.js index a9c74a7..9ac0e08 100644 --- a/gnome-shell/firewall@subgraph.com/extension.js +++ b/gnome-shell/firewall@subgraph.com/extension.js @@ -31,12 +31,14 @@ const FirewallSupport = new Lang.Class({ this.handler = null; } }, + enable: function() { this._destroyHandler(); this.handler = new FirewallPromptHandler(); //this.cmon.install(); this.menu.install(); }, + disable: function() { this.menu.destroy(); //this.cmon.remove(); @@ -137,14 +139,14 @@ const FirewallPromptHandler = new Lang.Class({ }, _destroyKeybindings: function() { - for (var i = 0 , ii = keyBindings.length; i < ii; i++) { + for (var i = 0 , ii = this._keyBindings.length; i < ii; i++) { Main.wm.removeKeybinding(this._keyBindings[i]); } }, _closeDialogs: function() { log("SGFW: Closing all dialogs"); - if (this._dialogs.length > 0) { + while (this._dialogs.length > 0) { dialog = this._dialogs.shift(); dialog.close(); }