[gnome-shell/gbsneto/custom-icon-positions: 1/2] appDisplay: Update folder dialog field before ungrabbing
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/custom-icon-positions: 1/2] appDisplay: Update folder dialog field before ungrabbing
- Date: Wed, 24 Jun 2020 18:42:41 +0000 (UTC)
commit 3c8ed38a9a5cefccae0554fb8904260c6ee484c8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jun 24 15:32:27 2020 -0300
appDisplay: Update folder dialog field before ungrabbing
Noticed while working on customizable folders. Calling GrabHelper.ungrab()
ends up calling FolderDialog.popdown(), but at this poind the '_isOpen'
field isn't updated yet, so we end up calling popdown() twice.
Update the '_isOpen' field before ungrabbing.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284
js/ui/appDisplay.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 5fefe49926..bed77c5b38 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -2301,8 +2301,8 @@ var AppFolderDialog = GObject.registerClass({
this._zoomAndFadeOut();
this._showFolderLabel();
- this._grabHelper.ungrab({ actor: this });
this._isOpen = false;
+ this._grabHelper.ungrab({ actor: this });
this.emit('open-state-changed', false);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]