refactor(src/window/panel/components): simplify visibility toggle in _on_title_button_clicked

Use Toggle for clearer intent
This commit is contained in:
sankalp committed 2026-06-17 05:32:42 +05:45
1 parent 754d69a86f
commit dd9cd58106
1 file changed
+1 -1
+1 -1
View File
@@ -294,7 +294,7 @@ class GlobalMenuDropdowns:
def _on_title_button_clicked(self, _): def _on_title_button_clicked(self, _):
if has_active_window(): if has_active_window():
self.global_menu_title.set_visible(not self.global_menu_title.get_visible()) self.global_menu_title.toggle()
def _on_active_app_changed(self, _, value): def _on_active_app_changed(self, _, value):
self.global_title_menu_about.set_property("label", f"About {value}") self.global_title_menu_about.set_property("label", f"About {value}")