From 374adcd03cec6ebca1c0c59a8e066654c19e7273 Mon Sep 17 00:00:00 2001 From: tpart Date: Fri, 19 Sep 2025 21:14:31 +0200 Subject: Only show fetching server list text if online feature enabled --- client/system/server_list.gd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client/system') diff --git a/client/system/server_list.gd b/client/system/server_list.gd index 77b5ee0c..a7e83729 100644 --- a/client/system/server_list.gd +++ b/client/system/server_list.gd @@ -66,18 +66,19 @@ func fetch_server_list(registry: Registry) -> void: match registry: Registry.MDNS: if Settings.read("online.use_discover"): + loading = true + update_loading.emit(true) match Discover.state: Service.State.STOPPED: Discover.start() Service.State.RUNNING: mdns.request(MDNS_URL, HEADERS) Registry.GLOBAL: if Settings.read("online.use_registry"): + loading = true + update_loading.emit(true) var url: String = Settings.read("online.registry_url") url = url.replace("https:", "http:") if using_http_fallback else url reg.request(url + "/v1/list", HEADERS) - loading = true - update_loading.emit(true) - func _on_request_completed(result: int, _response_code: int, _headers: PackedStringArray, body: PackedByteArray, registry: Registry): loading = false update_loading.emit(false) -- cgit v1.2.3-70-g09d2