Defaulting open/save to .local/usr/share/gtk4 folder

This commit is contained in:
2023-10-22 22:02:45 -05:00
parent 66491a6198
commit f3e808b839
6 changed files with 27 additions and 14 deletions

View File

@@ -25,7 +25,8 @@ class DialogSignalsMixin():
file_chooser.add_filter(file_filter)
file_chooser.set_default_response(Gtk.ResponseType.OK)
file_chooser.set_current_folder(os.path.expanduser('~'))
path = f"{os.path.expanduser('~')}/.local/share/gtksourceview-4/styles"
file_chooser.set_current_folder(path)
path = None
response = file_chooser.run()
@@ -112,7 +113,8 @@ class DialogSignalsMixin():
file_chooser.add_filter(file_filter)
file_chooser.set_default_response(Gtk.ResponseType.OK)
file_chooser.set_current_folder( os.path.expanduser('~') )
path = f"{os.path.expanduser('~')}/.local/share/gtksourceview-4/styles"
file_chooser.set_current_folder(path)
if current_name:
file_chooser.set_current_name(current_name)