diff --git a/systems/auto_update.gd b/systems/auto_update.gd index b5858e5..2b6188e 100644 --- a/systems/auto_update.gd +++ b/systems/auto_update.gd @@ -42,6 +42,7 @@ func download_button_pressed() -> void: func patch_downloaded(result: int, _response_code: int, _headers: PackedStringArray, _body: PackedByteArray) -> void: if result == OK: + OS.create_process(OS.get_executable_path(),OS.get_cmdline_args()) get_tree().quit() else: update_version_text.emit("[color=red]Ошибка загрузки новой версии:" + str(result) +"[/color]")