[gnome-shell] dash: Consider additions for separator visibility
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: Consider additions for separator visibility
- Date: Wed, 10 Feb 2021 09:14:50 +0000 (UTC)
commit 9aa25eaa0b7fe85b6edead3dbb42bac8d3103aa0
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 9 21:48:39 2021 +0100
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>
js/ui/dash.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 16893f9765..6b4c114e79 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -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({
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]