Skip to content

Commit 9261232

Browse files
committed
Fix wrong event name
1 parent 52bb2db commit 9261232

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

qubesappmenusext/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,18 @@ def on_feature_set_internal(self, vm, event, feature, value,
226226
self.vm_tasks[vm.name].append(
227227
asyncio.ensure_future(self.remove_appmenus(vm.name, vm.guivm)))
228228

229-
@qubes.ext.handler('domains-start')
229+
@qubes.ext.handler('domain-start')
230230
async def on_domain_start(self, vm, event, **kwargs):
231231
"""Process queued menu updates"""
232-
pending_update = vm.features.get('menu-update-pending-for', '').split(' ')
233232
pending_remove = vm.features.get('menu-remove-pending-for', '').split(' ')
234-
if pending_update or pending_remove:
235-
vm.log.info("Processing pending menu updates")
233+
pending_update = vm.features.get('menu-update-pending-for', '').split(' ')
234+
if pending_remove:
235+
vm.log.info("Processing pending menu removals")
236236
for to_remove in pending_remove:
237237
await self.remove_appmenus(to_remove, guivm=vm)
238-
del vm.features['menu-update-pending-for']
238+
del vm.features['menu-remove-pending-for']
239+
if pending_update:
240+
vm.log.info("Processing pending menu updates")
239241
for to_update in pending_update:
240242
if to_update not in vm.app.domains:
241243
# removed in the meantime, and should be handled

0 commit comments

Comments
 (0)