mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Changes, made server browser refresh button have a hard 30 second minimum refresh interval, settings are now saved!
This commit is contained in:
@@ -120,7 +120,12 @@ class W3DHub
|
||||
begin
|
||||
list = Api.server_list(2)
|
||||
|
||||
Store.server_list = list.sort_by! { |s| s&.status&.players&.size }.reverse if list
|
||||
if list
|
||||
Store.server_list = list.sort_by! { |s| s&.status&.players&.size }.reverse
|
||||
end
|
||||
|
||||
Store.server_list_last_fetch = Gosu.milliseconds
|
||||
|
||||
@tasks[:server_list][:complete] = true
|
||||
rescue => e
|
||||
# Something went wrong!
|
||||
|
||||
Reference in New Issue
Block a user