Skip to content

Commit 977818f

Browse files
committed
The input folder field now default to the Input folder.
1 parent bf76a76 commit 977818f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Python/gui.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from Python import convert
77

88

9-
sg.user_settings_filename(filename="settings.json", path=".")
109
no_path_set_color = "#b35858"
1110

1211

@@ -28,6 +27,11 @@ def init_window_theme():
2827

2928

3029
def init_window():
30+
sg.user_settings_filename(filename="settings.json", path=".")
31+
32+
if not sg.user_settings_get_entry("input_folder"):
33+
sg.user_settings_set_entry("input_folder", resource_path("Input"))
34+
3135
if not os.path.isfile(sg.user_settings_filename()):
3236
sg.Popup("This is a tool that allows you to convert legacy (old) mods to the latest version of CCCP. You can get more information from the GitHub repo or the Discord server by clicking the corresponding icons.", title="Welcome screen", custom_text=" OK ")
3337

0 commit comments

Comments
 (0)