Center the panel menu under the button

The button was created with menuAlignment 0.0, which places the arrow at
the menu's left edge while it still points at the button's center, so the
menu opened from the middle of the widget. Use 0.5 to match the default
source alignment and center the menu under the button like other indicators.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
av
2026-07-20 14:49:15 +03:00
co-authored by Claude Opus 4.8
parent 49df839254
commit 11c69bf012
+1 -1
View File
@@ -17,7 +17,7 @@ import { formatSpeed, formatSpeedShort } from './format.js';
export const SingBoxIndicator = GObject.registerClass( export const SingBoxIndicator = GObject.registerClass(
class SingBoxIndicator extends PanelMenu.Button { class SingBoxIndicator extends PanelMenu.Button {
_init(extension) { _init(extension) {
super._init(0.0, 'sing-box Status', false); super._init(0.5, 'sing-box Status', false);
this._extension = extension; this._extension = extension;
this._settings = extension.getSettings(); this._settings = extension.getSettings();