places-menu: Account for app menu removal
The app menu has been removed from the top bar, so we can no longer base our own indicator position on it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/255>
This commit is contained in:
@@ -149,7 +149,7 @@ let _indicator;
|
||||
function enable() {
|
||||
_indicator = new PlacesMenu();
|
||||
|
||||
let pos = Main.sessionMode.panel.left.indexOf('appMenu');
|
||||
let pos = Main.sessionMode.panel.left.length;
|
||||
if ('apps-menu' in Main.panel.statusArea)
|
||||
pos++;
|
||||
Main.panel.addToStatusArea('places-menu', _indicator, pos, 'left');
|
||||
|
||||
Reference in New Issue
Block a user