OSDN Git Service

addonHandler.Addon.isPendingRemove: don't check for this addon in removesSet if isPen...
authorMichael Curran <mick@kulgan.net>
Mon, 7 May 2012 04:19:26 +0000 (14:19 +1000)
committerMichael Curran <mick@kulgan.net>
Mon, 7 May 2012 04:19:26 +0000 (14:19 +1000)
source/addonHandler.py

index 9c96124..410d1d7 100644 (file)
@@ -185,7 +185,7 @@ class Addon(object):
        @property
        def isPendingRemove(self):
                """True if this addon is marked for removal."""
-               return self.name in state['pendingRemovesSet']
+               return not self.isPendingInstall and self.name in state['pendingRemovesSet']
 
        def requestRemove(self):
                """Markes this addon for removal on NVDA restart."""