[gnome-shell/wip/carlosg/save-pages-after-dnd: 18/18] appDisplay: Save pages after drag end




commit a7a7ea4af7520ed0f15c07e47cde563c0e819160
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 19 00:41:16 2021 +0100

    appDisplay: Save pages after drag end
    
    In the case that we drop an app in the dash, we take the icon
    out of its current page, but we forget to save the page after
    that.
    
    This results in oddities dragging further elements around, as
    the PageManager does no longer consider them to be in the
    positions they actually are.
    
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1939984
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1775>

 js/ui/appDisplay.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 40122ad4b9..bb7e47e178 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1748,6 +1748,7 @@ class AppDisplay extends BaseAppView {
     _onDragEnd() {
         super._onDragEnd();
         this._removePlaceholder();
+        this._savePages();
     }
 
     _onDragCancelled(overview, source) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]