summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhaoQiang <qzhao@suse.com>2025-06-02 12:17:52 +0800
committerPeng Wu <alexepico@gmail.com>2025-06-04 17:52:37 +0800
commita97f1def22477c80eef3207b8f2b23018828811c (patch)
tree67b2a76d5bd67c6a884a2c92140de11b850b6a04
parent15d7268cd8fdfa461b832edc5c246ef018938a41 (diff)
downloadibus-libpinyin-a97f1def22477c80eef3207b8f2b23018828811c.tar.gz
ibus-libpinyin-a97f1def22477c80eef3207b8f2b23018828811c.tar.xz
ibus-libpinyin-a97f1def22477c80eef3207b8f2b23018828811c.zip
Fix import and export data default from program dir
-rw-r--r--setup/main2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/main2.py b/setup/main2.py
index 6406c2e..47796b6 100644
--- a/setup/main2.py
+++ b/setup/main2.py
@@ -496,6 +496,8 @@ class PreferencesDialog:
dialog.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_OPEN, Gtk.ResponseType.OK)
+ dialog.set_current_folder(os.path.expanduser("~"))
+
filter_text = Gtk.FileFilter()
filter_text.set_name("Text files")
filter_text.add_mime_type("text/plain")
@@ -517,6 +519,8 @@ class PreferencesDialog:
dialog.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_SAVE, Gtk.ResponseType.OK)
+ dialog.set_current_folder(os.path.expanduser("~"))
+
dialog.set_do_overwrite_confirmation(True)
filter_text = Gtk.FileFilter()