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()
def executeFini(self): g_eventDispatcher.removeFalloutFromCarousel() super(FalloutSquadActionsHandler, self).executeFini()
def __onItemsResync(self, updateReason, _): if updateReason == CACHE_SYNC_REASON.INVENTORY_RESYNC: self.__updateVehicles() if not (self.isEnabled() and self._proxy.isAvailable()): g_eventDispatcher.removeFalloutFromCarousel()