fix(src/window/panel): handle missing label gracefully when updating dropdown

This commit is contained in:
sankalp committed 2026-07-04 05:00:54 +05:45
1 parent 901731711f
commit 09a01a7f41
1 file changed
+7 -1
+7 -1
View File
@@ -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: