diff options
Diffstat (limited to 'client/gui/menus/main')
-rw-r--r-- | client/gui/menus/main/play.gd | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/gui/menus/main/play.gd b/client/gui/menus/main/play.gd index 87b0b5bf..1e64a02f 100644 --- a/client/gui/menus/main/play.gd +++ b/client/gui/menus/main/play.gd @@ -34,7 +34,7 @@ func _ready(): url_regex.compile("^(?:(ws|wss)://)?([^:]+)(?::([0-9]+))?$") if OS.has_feature("web"): server.hide() - connect_uri.text = Global.get_profile("last_server_url") + connect_uri.text = Profile.read("last_server_url") Sound.play_music("MainMenu") ServerList.update_server_list.connect(update_server_list) @@ -43,7 +43,7 @@ func _ready(): update_server_list_loading(ServerList.loading) super() - if not Global.get_profile("registry_asked"): + if not Profile.read("registry_asked"): var popup_data := MenuPopup.Data.new() popup_data.text = tr("c.menu.play.allow_query_registry").format([Settings.read("online.registry_url")]) var allow_button := Button.new() @@ -54,8 +54,8 @@ func _ready(): deny_button.pressed.connect(func(): Settings.write("online.use_registry", false)) popup_data.buttons = [allow_button, deny_button] await submenu("res://gui/menus/popup.tscn", popup_data) - Global.set_profile("registry_asked", true) - Global.save_profile() + Profile.write("registry_asked", true) + Profile.save() Settings.save() ServerList.start() @@ -110,8 +110,8 @@ func _on_connect_pressed(): if result.get_string(3) == "" and result.get_string(1) != "wss": url = url + ":27032" connect_uri.text = url - Global.set_profile("last_server_url", url) - Global.save_profile() + Profile.write("last_server_url", url) + Profile.save() connect_to(url) func _on_quick_connect_pressed(): |