[gnome-shell] dash: Only show separator when there are running apps
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: Only show separator when there are running apps
- Date: Sat, 30 Jan 2021 09:48:35 +0000 (UTC)
commit 151a104f9a48439896f32de233d8eea6b6c1b384
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jan 29 19:03:07 2021 +0100
dash: Only show separator when there are running apps
The separator is only really needed to distinguish favorite apps
from running apps, the show-apps button is distinct enough already.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1610>
js/ui/dash.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 2d329ae91e..16893f9765 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -745,7 +745,8 @@ var Dash = GObject.registerClass({
// Update separator
const nFavorites = Object.keys(favorites).length;
- if (nFavorites > 0) {
+ const nIcons = children.length - removedActors.length;
+ if (nFavorites > 0 && nFavorites < nIcons) {
if (!this._separator) {
this._separator = new St.Widget({
style_class: 'dash-separator',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]