aboutsummaryrefslogtreecommitdiff
path: root/client/menu/main.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-12 01:30:53 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-12 01:30:53 +0200
commit55d3fd0c7ead5c47a3fbf63463b70af328e7dcc9 (patch)
tree994c689c3aa3e6ab62ec4bfac1ddf5aabb5f9d7d /client/menu/main.gd
parent177056420c5f31a0fb41e9ce0a67fc90cad4312e (diff)
parent0f0c7713218dc9fc8beafdbe14785c11a0f61ea8 (diff)
downloadhurrycurry-55d3fd0c7ead5c47a3fbf63463b70af328e7dcc9.tar
hurrycurry-55d3fd0c7ead5c47a3fbf63463b70af328e7dcc9.tar.bz2
hurrycurry-55d3fd0c7ead5c47a3fbf63463b70af328e7dcc9.tar.zst
Merge branch 'master' of https://codeberg.org/hurrycurry/hurrycurry
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():