diff --git a/gui/gui.py b/gui/gui.py index ea58c39..7fde7f5 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -104,7 +104,7 @@ class Gui: if file_is_empty: sg.popup_annoying('Our interpreter did not find anything. --> blame Kons or yourself!', title='Empty') - if path: + elif path: fnames = output(path) sg.popup_annoying('Successfully created!', title='Created', auto_close_duration=2, auto_close=True, text_color='green') diff --git a/interpreter/NassiShneidermann.py b/interpreter/NassiShneidermann.py index 33cc220..f1b6ab2 100644 --- a/interpreter/NassiShneidermann.py +++ b/interpreter/NassiShneidermann.py @@ -56,7 +56,7 @@ class NassiShneidermanDiagram: def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool: i = 0 for scope in self.function_scopes: - cancel = one_line_progress_meter('Progress', i, len(self.function_scopes), '-PROGRESSBAR-') + cancel = one_line_progress_meter('Progress', i+1, len(self.function_scopes), '-PROGRESSBAR-') if not cancel: return False