From 09a01a7f41ac92c802b39b9bd79bdc5d78fd7072 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 4 Jul 2026 05:00:54 +0545 Subject: [PATCH] fix(src/window/panel): handle missing label gracefully when updating dropdown --- src/window/panel/components/globalmenu.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/window/panel/components/globalmenu.py b/src/window/panel/components/globalmenu.py index 415b818..95daada 100644 --- a/src/window/panel/components/globalmenu.py +++ b/src/window/panel/components/globalmenu.py @@ -320,7 +320,13 @@ class GlobalMenuDropdowns: def _on_active_app_changed(self, _, value): logger.info(f"[GlobalMenu] Active app changed: {value}") - self.global_title_menu_about.set_property("label", f"About {value}") + try: + # The dropdown_option returns a Button containing a CenterBox with the Label as its first start_child + self.global_title_menu_about.get_child().get_start_children()[0].set_label( + f"About {value}" + ) + except Exception: + pass # Notify the global menu service about the active window change if self._global_menu_svc: