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:
Florian Müllner
2023-05-27 00:44:26 +02:00
parent ced3c94dfa
commit 61a260bc94
+1 -1
View File
@@ -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');