aboutsummaryrefslogtreecommitdiff
path: root/client/menu/main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/main.gd')
-rw-r--r--client/menu/main.gd5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/menu/main.gd b/client/menu/main.gd
index 9fe026fe..a0ad2ee5 100644
--- a/client/menu/main.gd
+++ b/client/menu/main.gd
@@ -26,7 +26,7 @@ func _ready():
if OS.has_feature("web"):
quit_button.hide()
server.hide()
- connect_uri.text = Global.profile["last_server_url"]
+ connect_uri.text = Global.get_profile("last_server_url")
func menu_anim_cover(covered):
$side.visible = not covered
@@ -39,8 +39,7 @@ func _on_credits_pressed():
func _on_connect_pressed():
var url = connect_uri.text
- Global.profile["last_server_url"] = url
- Global.save_profile()
+ Global.set_profile("last_server_url", url)
connect_to(url)
func _on_quick_connect_pressed():