window-list: Fix resetting handler ID

This is embarrassing, although destroy() is expected to only run once,
so the bug shouldn't have an effect in practice.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/78
This commit is contained in:
Florian Müllner
2019-06-29 02:52:45 +02:00
parent 92db87f7cb
commit 2ef6dba0a5

View File

@@ -255,6 +255,6 @@ class WindowPickerToggle extends St.Button {
_onDestroy() {
if (this._overlayKeyId)
global.display.disconnect(this._overlayKeyId);
this._overlayKeyId == 0;
this._overlayKeyId = 0;
}
});