appmenus: add QubesVm.appmenus_recreate method

This commit is contained in:
Marek Marczykowski-Górecki 2013-12-04 03:03:48 +01:00
parent 0f669a68b4
commit 190d52b6fb

View File

@ -142,9 +142,14 @@ def QubesVm_clone_disk_files(self, src_vm, verbose):
def QubesVm_remove_from_disk(self): def QubesVm_remove_from_disk(self):
self.appmenus_remove() self.appmenus_remove()
def QubesVm_appmenus_recreate(self):
self.appmenus_remove()
self.appmenus_create()
# new methods # new methods
QubesVm.appmenus_create = QubesVm_appmenus_create QubesVm.appmenus_create = QubesVm_appmenus_create
QubesVm.appmenus_remove = QubesVm_appmenus_remove QubesVm.appmenus_remove = QubesVm_appmenus_remove
QubesVm.appmenus_recreate = QubesVm_appmenus_recreate
# hooks for existing methods # hooks for existing methods
QubesVm.hooks_get_attrs_config.append(QubesVm_get_attrs_config) QubesVm.hooks_get_attrs_config.append(QubesVm_get_attrs_config)