mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Server and applications lists are now updated every 5 and 10 minutes respectively
This commit is contained in:
@@ -231,7 +231,12 @@ class W3DHub
|
||||
return list.first
|
||||
end
|
||||
|
||||
def refresh_server_list(server, mode = :update) # :remove
|
||||
def refresh_server_list(server, mode = :update) # :remove, :refresh_all
|
||||
if mode == :refresh_all
|
||||
populate_server_list
|
||||
return
|
||||
end
|
||||
|
||||
@refresh_server_list = Gosu.milliseconds + 3_000
|
||||
@refresh_server = server if @selected_server&.id == server.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user