mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: Clear content of ASSIGNMENT_ENTRY_LIST if needed
This commit is contained in:
parent
bff1da7899
commit
d34120358a
@ -5,7 +5,7 @@ from tasks.assignment.claim import AssignmentClaim
|
|||||||
from tasks.assignment.keywords import (KEYWORDS_ASSIGNMENT_GROUP,
|
from tasks.assignment.keywords import (KEYWORDS_ASSIGNMENT_GROUP,
|
||||||
AssignmentEntry, AssignmentEventEntry,
|
AssignmentEntry, AssignmentEventEntry,
|
||||||
AssignmentEventGroup)
|
AssignmentEventGroup)
|
||||||
from tasks.assignment.ui import AssignmentStatus
|
from tasks.assignment.ui import ASSIGNMENT_ENTRY_LIST, AssignmentStatus
|
||||||
from tasks.base.page import page_assignment, page_menu
|
from tasks.base.page import page_assignment, page_menu
|
||||||
from tasks.daily.keywords import KEYWORDS_DAILY_QUEST
|
from tasks.daily.keywords import KEYWORDS_DAILY_QUEST
|
||||||
from tasks.daily.synthesize import SynthesizeUI
|
from tasks.daily.synthesize import SynthesizeUI
|
||||||
@ -33,6 +33,7 @@ class Assignment(AssignmentClaim, SynthesizeUI):
|
|||||||
|
|
||||||
self.dispatched = dict()
|
self.dispatched = dict()
|
||||||
self.has_new_dispatch = False
|
self.has_new_dispatch = False
|
||||||
|
ASSIGNMENT_ENTRY_LIST.cur_buttons = []
|
||||||
self.ensure_scroll_top(page_menu)
|
self.ensure_scroll_top(page_menu)
|
||||||
self.ui_ensure(page_assignment)
|
self.ui_ensure(page_assignment)
|
||||||
event_ongoing = next((
|
event_ongoing = next((
|
||||||
|
@ -244,8 +244,9 @@ class AssignmentUI(UI):
|
|||||||
if timeout.reached():
|
if timeout.reached():
|
||||||
logger.warning('Wait correct entry loaded timeout')
|
logger.warning('Wait correct entry loaded timeout')
|
||||||
break
|
break
|
||||||
if self.appear(EVENT_FINISHED):
|
if isinstance(group, AssignmentEventGroup) and self.appear(EVENT_FINISHED):
|
||||||
logger.info('Event finished')
|
logger.info('Correct entry loaded')
|
||||||
|
ASSIGNMENT_ENTRY_LIST.cur_buttons = []
|
||||||
break
|
break
|
||||||
|
|
||||||
ASSIGNMENT_ENTRY_LIST.load_rows(self)
|
ASSIGNMENT_ENTRY_LIST.load_rows(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user