From bad449f235cac7337dcb0b7d2b3219c71eaad667 Mon Sep 17 00:00:00 2001 From: Wojciech Zygmunt Porczyk Date: Mon, 5 May 2014 22:26:53 +0200 Subject: [PATCH] qubes-core-appmenus.py: create/remove appmenus only when attribtute changes This is part of #827 bug. --- appmenus-scripts/qubes-core-appmenus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appmenus-scripts/qubes-core-appmenus.py b/appmenus-scripts/qubes-core-appmenus.py index 5d6e018..49e4ca7 100644 --- a/appmenus-scripts/qubes-core-appmenus.py +++ b/appmenus-scripts/qubes-core-appmenus.py @@ -234,11 +234,11 @@ def QubesVm_appmenus_recreate(self): self.appicons_create() self.appmenus_create() -def QubesVm_set_attr(self, name, value): +def QubesVm_set_attr(self, name, newvalue, oldvalue): if name == 'internal': - if value: + if newvalue and not oldvalue: self.appmenus_remove() - else: + elif not newvalue and oldvalue: self.appmenus_create() # new methods