Esempio n. 1
0
 def fini(self, ctx=None, woEvents=False):
     if not woEvents:
         if not self.canSwitch(ctx):
             g_eventDispatcher.removeFalloutFromCarousel()
     else:
         g_eventDispatcher.removeFalloutFromCarousel(closeWindow=False)
     return super(_FalloutEntity, self).fini(ctx, woEvents)
 def __onItemsResync(self, updateReason, _):
     if updateReason in (CACHE_SYNC_REASON.INVENTORY_RESYNC,
                         CACHE_SYNC_REASON.CLIENT_UPDATE):
         self.falloutStorage.validateSelectedVehicles()
     if not (self.isEnabled() and self._proxy.isAvailable()):
         g_eventDispatcher.removeFalloutFromCarousel()
 def __onItemsResync(self, updateReason, _):
     if updateReason in (CACHE_SYNC_REASON.INVENTORY_RESYNC, CACHE_SYNC_REASON.CLIENT_UPDATE):
         self.falloutStorage.validateSelectedVehicles()
     if not (self.isEnabled() and self._proxy.isAvailable()):
         g_eventDispatcher.removeFalloutFromCarousel()
Esempio n. 4
0
 def executeFini(self):
     g_eventDispatcher.removeFalloutFromCarousel()
     super(FalloutSquadActionsHandler, self).executeFini()
Esempio n. 5
0
 def __onItemsResync(self, updateReason, _):
     if updateReason == CACHE_SYNC_REASON.INVENTORY_RESYNC:
         self.__updateVehicles()
     if not (self.isEnabled() and self._proxy.isAvailable()):
         g_eventDispatcher.removeFalloutFromCarousel()