mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
dash: Consider additions for separator visibility
The children variable holds the icons that were originally in the dash. For the separator visibility, we should consider the icons that are in the dash after the update, so we must consider additions as well as removals. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1659>
This commit is contained in:
parent
6a2ed852e7
commit
9aa25eaa0b
1 changed files with 1 additions and 1 deletions
|
|
@ -745,7 +745,7 @@ var Dash = GObject.registerClass({
|
|||
|
||||
// Update separator
|
||||
const nFavorites = Object.keys(favorites).length;
|
||||
const nIcons = children.length - removedActors.length;
|
||||
const nIcons = children.length + addedItems.length - removedActors.length;
|
||||
if (nFavorites > 0 && nFavorites < nIcons) {
|
||||
if (!this._separator) {
|
||||
this._separator = new St.Widget({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue