diff --git a/__pycache__/cfd_app_config.cpython-312.pyc b/__pycache__/cfd_app_config.cpython-312.pyc index b3d0a86..3bf1bd0 100644 Binary files a/__pycache__/cfd_app_config.cpython-312.pyc and b/__pycache__/cfd_app_config.cpython-312.pyc differ diff --git a/__pycache__/custom_file_dialog.cpython-312.pyc b/__pycache__/custom_file_dialog.cpython-312.pyc index fcc7fcc..e806382 100644 Binary files a/__pycache__/custom_file_dialog.cpython-312.pyc and b/__pycache__/custom_file_dialog.cpython-312.pyc differ diff --git a/cfd_app_config.py b/cfd_app_config.py index 3626242..0c34775 100755 --- a/cfd_app_config.py +++ b/cfd_app_config.py @@ -64,7 +64,7 @@ class CfdConfigManager: "use_trash": False, # True or False "confirm_delete": False, # True or False "recursive_search": True, - "use_pillow_animation": False + "use_pillow_animation": True } @classmethod diff --git a/custom_file_dialog.py b/custom_file_dialog.py index beb8da9..c14f944 100644 --- a/custom_file_dialog.py +++ b/custom_file_dialog.py @@ -176,7 +176,8 @@ class SettingsDialog(tk.Toplevel): self.recursive_search.set(defaults["recursive_search"]) self.use_trash.set(defaults["use_trash"]) self.confirm_delete.set(defaults["confirm_delete"]) - self.use_pillow_animation.set(defaults.get("use_pillow_animation", False)) + if PIL_AVAILABLE: + self.use_pillow_animation.set(defaults.get("use_pillow_animation", True)) self.animation_type.set(defaults.get("animation_type", "counter_arc")) diff --git a/mainwindow.py b/mainwindow.py index c7d103a..690e400 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -33,7 +33,7 @@ class GlotzMol(tk.Tk): dialog = CustomFileDialog(self, initial_dir=os.path.expanduser("~"), filetypes=[("All Files", "*.*") - ]) + ], dialog_mode="save") # This is the crucial part: wait for the dialog to be closed self.wait_window(dialog)