From dfde12daa6e3065c5abbad40f432958370e0891f Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sun, 3 Mar 2024 17:32:27 +0100 Subject: [PATCH] Handle file dialog abort properly --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7d073cc..d5e32f4 100644 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ def menu_file_open_project_click(): title="Open font project", filetypes=[("Font project (json)", "*.fontproj")] ) - if file_path == "": + if file_path == "" or file_path==(): return # save last path to cache @@ -58,7 +58,7 @@ def menu_file_save_project_click(): filetypes=[("Font project (json)", "*.fontproj")], defaultextension=".fontproj" ) - if path=="": + if path=="" or file_path==(): return try: