feat: globalmenu updates

This commit is contained in:
sankalp committed 2026-07-29 09:31:05 +05:45
1 parent 47c413b374
commit 8980e90e39
3 files changed
+93 -15

No files matched your search

+14 -7
View File
@@ -438,14 +438,21 @@ class GlobalMenuService(Service):
subtree = entry.importer.update_layout(parent_id, revision)
if subtree is None:
return
if parent_id == 0:
with self._state_lock:
if entry.wm_class == self._current_wm_class:
with self._state_lock:
if entry.wm_class == self._current_wm_class:
full_menu = entry.importer.get_layout()
if full_menu is not None:
self._current_menu = full_menu
elif parent_id == 0:
self._current_menu = subtree
with self._seq_lock:
self._extraction_seq += 1
seq = self._extraction_seq
idle_add(self._emit_menu_changed, subtree, seq)
with self._seq_lock:
self._extraction_seq += 1
seq = self._extraction_seq
idle_add(
self._emit_menu_changed,
self._current_menu or subtree,
seq,
)
def _handle_items_updated(
self,