aboutsummaryrefslogtreecommitdiff
path: root/menu
diff options
context:
space:
mode:
Diffstat (limited to 'menu')
-rw-r--r--menu/menu.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/menu/menu.gd b/menu/menu.gd
index 639a99b..1df6f28 100644
--- a/menu/menu.gd
+++ b/menu/menu.gd
@@ -42,7 +42,8 @@ func _menu_import_option_sets_action():
file_picker.mode = FileDialog.MODE_OPEN_FILE
file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS)
file_picker.filters[0] = "*.json"
- file_picker.connect("file_selected", stage, "load_option_sets", [], CONNECT_ONESHOT)
+ file_picker.current_file = ""
+ file_picker.connect("file_selected", stage, "import_option_sets", [true], CONNECT_ONESHOT)
file_picker.show_modal(true)
file_picker.invalidate()
@@ -52,6 +53,7 @@ func _menu_export_option_sets_action():
file_picker.mode = FileDialog.MODE_SAVE_FILE
file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS)
file_picker.filters[0] = "*.json"
+ file_picker.current_file = ""
file_picker.connect("file_selected", stage, "store_option_sets", [], CONNECT_ONESHOT)
file_picker.show_modal(true)
file_picker.invalidate()
@@ -69,6 +71,7 @@ func _menu_export_data_action():
file_picker.mode = FileDialog.MODE_SAVE_FILE
file_picker.current_dir = OS.get_system_dir(OS.SYSTEM_DIR_DOWNLOADS)
file_picker.filters[0] = "*.csv"
+ file_picker.current_file = ""
file_picker.connect("file_selected", database, "store_database", [], CONNECT_ONESHOT)
file_picker.show_modal(true)
file_picker.invalidate()