mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Launcher: save default settings before opening file for users (#4042)
This commit is contained in:
@@ -35,7 +35,9 @@ from Utils import is_frozen, user_path, local_path, init_logging, open_filename,
|
|||||||
|
|
||||||
|
|
||||||
def open_host_yaml():
|
def open_host_yaml():
|
||||||
file = settings.get_settings().filename
|
s = settings.get_settings()
|
||||||
|
file = s.filename
|
||||||
|
s.save()
|
||||||
assert file, "host.yaml missing"
|
assert file, "host.yaml missing"
|
||||||
if is_linux:
|
if is_linux:
|
||||||
exe = which('sensible-editor') or which('gedit') or \
|
exe = which('sensible-editor') or which('gedit') or \
|
||||||
|
Reference in New Issue
Block a user