+ fix cancel on progressbar

This commit is contained in:
oleting
2021-01-05 00:46:30 +01:00
parent 63f65250a3
commit b2b4bd79d1
3 changed files with 18 additions and 8 deletions

View File

@@ -62,7 +62,9 @@ class NassiShneidermanDiagram:
number_of_item = 1
for scope in self.function_scopes:
number_of_item += 1
one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
cancel = one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
if not cancel:
return False
filepath = f"{output_path}/{scope.name}"
filepath = self.check_conflicts(filepath, on_conflict)