feat(deps): lock fabric to specific commit and add required dependencies

Align with latest stable API and ensure reproducible builds
This commit is contained in:
sankalp committed 2026-06-22 17:46:34 +05:45
1 parent e8f3e4dd8b
commit ef0b9f0b68
1 file changed
+16
+16
View File
@@ -345,6 +345,22 @@ class GlobalMenuDropdowns:
"""
logger.info(f"[GlobalMenu] _rebuild_dynamic_menus: {len(menu_items)} items")
# Destroy old buttons to prevent massive GTK memory leaks
if hasattr(self, "all_menu_buttons"):
for btn in self.all_menu_buttons:
if btn not in (
self.global_menu_button_title,
getattr(self, "global_menu_button_view", None),
getattr(self, "global_menu_button_window", None),
getattr(self, "global_menu_button_help", None),
):
try:
if btn.get_parent():
btn.get_parent().remove(btn)
btn.destroy()
except Exception:
pass
# Clean up any previous dynamic dropdowns
for dd in self._dynamic_dropdowns:
try: