[gnome-shell/gbsneto/icon-grid-dnd-fixes: 10/14] appDisplay: Save pages when folder apps change
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-dnd-fixes: 10/14] appDisplay: Save pages when folder apps change
- Date: Fri, 25 Sep 2020 14:50:50 +0000 (UTC)
commit 8742d4c04ac8eaaf4205f97bce35af7ad7dbe792
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Sep 24 14:16:48 2020 -0300
appDisplay: Save pages when folder apps change
After dragging an icon to inside a folder, we do not save the grid layout,
leaving the icon's position stored when it actually isn't there anymore.
Fix that by saving pages whenever folder apps change.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1447
js/ui/appDisplay.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index fe19b8720e..f2e2ceb1a8 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1094,7 +1094,10 @@ class AppDisplay extends BaseAppView {
let icon = this._items.get(id);
if (!icon) {
icon = new FolderIcon(id, path, this);
- icon.connect('apps-changed', this._redisplay.bind(this));
+ icon.connect('apps-changed', () => {
+ this._redisplay();
+ this._savePages();
+ });
}
// Don't try to display empty folders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]