mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Merge branch 'dash-separator' into 'main'
dash: Fixes wrong separator position Closes #3966 and #3799 See merge request GNOME/gnome-shell!1973
This commit is contained in:
commit
4394f1885a
1 changed files with 11 additions and 1 deletions
|
|
@ -826,7 +826,17 @@ export const Dash = GObject.registerClass({
|
|||
});
|
||||
this._box.add_child(this._separator);
|
||||
}
|
||||
let pos = nFavorites + this._animatingPlaceholdersCount;
|
||||
let pos = nFavorites;
|
||||
let itemsBeforeSeparator = 0;
|
||||
for (let item of this._box.get_children()) {
|
||||
if (item.animatingOut)
|
||||
pos++;
|
||||
itemsBeforeSeparator++;
|
||||
// Assuming only one icon is moved at a time
|
||||
// Or else we need to track removed favorite items
|
||||
if (itemsBeforeSeparator > nFavorites)
|
||||
break;
|
||||
}
|
||||
if (this._dragPlaceholder)
|
||||
pos++;
|
||||
this._box.set_child_at_index(this._separator, pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue