Launcher: save default settings before opening file for users (#4042)
This commit is contained in:
parent
2b0cab82fa
commit
79cec89e24
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue