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>
This commit is contained in:
Florian Müllner 2021-01-29 19:03:07 +01:00 committed by Marge Bot
parent 1f3a364ffa
commit 151a104f9a

View File

@ -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',