Start: Broadcast start_options only on first-time run
Prevents the save from occurring multiple times for no reason. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
0586fc17cc
commit
810cd40016
1 changed files with 8 additions and 8 deletions
16
start.py
16
start.py
|
|
@ -234,15 +234,15 @@ if __name__ == "__main__":
|
|||
if first_run:
|
||||
start_options["first_run_done"] = True
|
||||
|
||||
# Save start options
|
||||
with open("start_options.json", "w") as start_file:
|
||||
start_file.write(json.dumps(start_options))
|
||||
# Save start options
|
||||
with open("start_options.json", "w") as start_file:
|
||||
start_file.write(json.dumps(start_options))
|
||||
|
||||
print(
|
||||
"Successfully wrote your start script options to `start_options.json`. \n"
|
||||
"If something goes wrong, editing or deleting the file "
|
||||
"will reinstall TabbyAPI as a first-time user."
|
||||
)
|
||||
print(
|
||||
"Successfully wrote your start script options to `start_options.json`. \n"
|
||||
"If something goes wrong, editing or deleting the file "
|
||||
"will reinstall TabbyAPI as a first-time user."
|
||||
)
|
||||
|
||||
# Import entrypoint after installing all requirements
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue