summaryrefslogtreecommitdiff
path: root/client/menu
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu')
-rw-r--r--client/menu/play.gd2
-rw-r--r--client/menu/setup.gd3
2 files changed, 4 insertions, 1 deletions
diff --git a/client/menu/play.gd b/client/menu/play.gd
index ded22f9a..ee35975e 100644
--- a/client/menu/play.gd
+++ b/client/menu/play.gd
@@ -46,9 +46,9 @@ func _on_connect_pressed():
url = url + ":27032"
connect_uri.text = url
Global.set_profile("last_server_url", url)
+ Global.save_profile()
connect_to(url)
-
func _on_quick_connect_pressed():
if OS.has_feature("web"):
connect_to(JavaScriptBridge.eval("""
diff --git a/client/menu/setup.gd b/client/menu/setup.gd
index c87e0112..0622d550 100644
--- a/client/menu/setup.gd
+++ b/client/menu/setup.gd
@@ -72,6 +72,9 @@ func _on_sign_pressed():
Global.set_profile("username", username.text)
Global.set_profile("character", character)
+ Global.save_profile()
Global.set_setting("gameplay.setup_completed", true)
+ Global.save_settings()
+
replace_menu("res://menu/main.tscn")