Fixed filechoser breakage from copy/paste action

This commit is contained in:
itdominator 2023-10-27 22:31:37 -05:00
parent ca016b1e36
commit 6fe58a39a2

View File

@ -55,7 +55,7 @@ class SaveFileDialog:
if current_filename == "": if current_filename == "":
import os import os
dlg.set_current_name("new.txt") dlg.set_current_name("new.txt")
filechooser.set_current_folder(os.path.expanduser('~')) dlg.set_current_folder(os.path.expanduser('~'))
else: else:
dlg.set_current_folder(current_file.get_parent().get_path()) dlg.set_current_folder(current_file.get_parent().get_path())
dlg.set_current_name(current_filename) dlg.set_current_name(current_filename)