refactor(src/utils): remove GTK menu fallback and add invalidate on ActionMenuClient

Drop unused GTK menu parsing to simplify maintenance and add invalidate hook to clear cached items when menu state changes.
This commit is contained in:
sankalp committed 2026-06-23 14:31:12 +05:45
1 parent ab7ac85b80
commit bf47875b84
2 files changed
+4 -48

No files matched your search

+4
View File
@@ -236,6 +236,10 @@ class ActionMenuClient:
def about_to_show(self, item_id: int) -> bool:
return False
def invalidate(self):
self._cached_items = []
self._action_map = {}
def click_item(
self, item_id: int, action_name: str = "", action_target=None
) -> None: