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:
parent
1f3a364ffa
commit
151a104f9a
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user