Skip to content

Commit

Permalink
Only show parsing finished when search time hit target
Browse files Browse the repository at this point in the history
Signed-off-by: sinmentis <sinmentis@foxmail.com>
  • Loading branch information
sinmentis committed Sep 24, 2023
1 parent 82ef4dd commit 75e93c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,12 @@ def startSearchingEmail(self, target_domain, search_times=1):
@Slot(list)
def onSearchCompleted(self, search_results):
self.update_destination_list(search_results)
self.set_system_state(SystemState.PARSING_EMAIL_FINISHED)
self.destinationEmailListChanged.emit()

if self.target_search_times > 1:
self.startSearchingEmail(self.domain_name_to_search, self.target_search_times - 1)
else:
self.set_system_state(SystemState.PARSING_EMAIL_FINISHED)

@Slot()
def exportEmailListToLocal(self):
Expand Down

0 comments on commit 75e93c4

Please sign in to comment.