[gnome-shell/gbsneto/icon-grid-dnd: 80/96] allView, folderView: Save order after moving icon
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-dnd: 80/96] allView, folderView: Save order after moving icon
- Date: Tue, 16 Jul 2019 23:28:51 +0000 (UTC)
commit ee8b8ef37620188b873a06c2155aca391ba9b4c6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jul 2 17:47:58 2019 -0300
allView, folderView: Save order after moving icon
WIP: commit message
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603
js/ui/appDisplay.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 8123382ac..05f1bed47 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -507,6 +507,11 @@ var AllView = class AllView extends BaseAppView {
this._saveGridLayout();
}
+ moveItem(item, newPosition) {
+ super.moveItem(item, newPosition);
+ this._saveGridLayout();
+ }
+
// Overridden from BaseAppView
animate(animationDirection, onComplete) {
this._scrollView.reactive = false;
@@ -1365,6 +1370,13 @@ var FolderView = class FolderView extends BaseAppView {
return apps;
}
+ moveItem(item, newPosition) {
+ super.moveItem(item, newPosition);
+
+ let appIds = this._allItems.map(icon => icon.id);
+ this._folder.set_strv('apps', appIds);
+ }
+
get folderIcon() {
return this._folderIcon;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]