workspace-indicator: Fix menu ornament
The default ornament is now HIDDEN, so in order to align items, we always have set an initial ornament. In gnome-shell 46, the expected "counter ornament" to DOT is NO_DOT rather than NONE, so use that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/305>
This commit is contained in:
@@ -349,7 +349,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
||||
for (let i = 0; i < this._workspacesItems.length; i++) {
|
||||
this._workspacesItems[i].setOrnament(i === this._currentWorkspace
|
||||
? PopupMenu.Ornament.DOT
|
||||
: PopupMenu.Ornament.NONE);
|
||||
: PopupMenu.Ornament.NO_DOT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -393,8 +393,9 @@ class WorkspaceIndicator extends PanelMenu.Button {
|
||||
this._activate(actor.workspaceId);
|
||||
});
|
||||
|
||||
if (i === this._currentWorkspace)
|
||||
this._workspacesItems[i].setOrnament(PopupMenu.Ornament.DOT);
|
||||
this._workspacesItems[i].setOrnament(i === this._currentWorkspace
|
||||
? PopupMenu.Ornament.DOT
|
||||
: PopupMenu.Ornament.NO_DOT);
|
||||
}
|
||||
|
||||
this._statusLabel.set_text(this._labelText());
|
||||
|
||||
Reference in New Issue
Block a user