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>
This commit is contained in:
Carlos Garnacho 2021-03-19 00:41:16 +01:00 committed by Marge Bot
parent dfc44973de
commit a7a7ea4af7

View File

@ -1748,6 +1748,7 @@ class AppDisplay extends BaseAppView {
_onDragEnd() { _onDragEnd() {
super._onDragEnd(); super._onDragEnd();
this._removePlaceholder(); this._removePlaceholder();
this._savePages();
} }
_onDragCancelled(overview, source) { _onDragCancelled(overview, source) {