Merge pull request #821 from KontiSR/dev

Fix for updating queue icon when DailySearchQueueItem is running.
This commit is contained in:
adam111316 2014-09-21 19:37:18 +08:00
commit cfae1ffa2d

View file

@ -84,9 +84,8 @@ class SearchQueue(generic_queue.GenericQueue):
return self.min_priority >= generic_queue.QueuePriorities.NORMAL
def is_manualsearch_in_progress(self):
for cur_item in self.queue + [self.currentItem]:
if isinstance(cur_item, (ManualSearchQueueItem, FailedQueueItem)):
return True
if isinstance(self.currentItem, (ManualSearchQueueItem, FailedQueueItem)):
return True
return False
def is_backlog_in_progress(self):