From bc59c51c9ecf17f5a7b557f0327286a16237e59f Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Wed, 18 Feb 2026 01:17:53 +0100 Subject: [PATCH] Wrap indicator children in BoxLayout for proper allocation PanelMenu.ButtonBox.vfunc_allocate only handles its first child via get_first_child(). Adding icon and label as direct children caused the label to never be allocated, making the indicator invisible when WiFi generation is unknown and the label should display instead of the icon. --- src/extension.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 438e86a..a1f7469 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -142,8 +142,10 @@ export default class WifiSignalPlusExtension extends Extension { style_class: 'wifi-signal-plus-label', }); - this.indicator.add_child(this.icon); - this.indicator.add_child(this.label); + const box = new St.BoxLayout({ style_class: 'panel-status-menu-box' }); + box.add_child(this.icon); + box.add_child(this.label); + this.indicator.add_child(box); this.buildMenu(); Main.panel.addToStatusArea(this.uuid, this.indicator);