qubes-core-appmenus.py: create/remove appmenus only when attribtute changes

This is part of #827 bug.
This commit is contained in:
Wojciech Zygmunt Porczyk 2014-05-05 22:26:53 +02:00
parent a9980d6d34
commit bad449f235

View File

@ -234,11 +234,11 @@ def QubesVm_appmenus_recreate(self):
self.appicons_create() self.appicons_create()
self.appmenus_create() self.appmenus_create()
def QubesVm_set_attr(self, name, value): def QubesVm_set_attr(self, name, newvalue, oldvalue):
if name == 'internal': if name == 'internal':
if value: if newvalue and not oldvalue:
self.appmenus_remove() self.appmenus_remove()
else: elif not newvalue and oldvalue:
self.appmenus_create() self.appmenus_create()
# new methods # new methods