mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Improvements to server browser
This commit is contained in:
@@ -476,6 +476,17 @@ class W3DHub
|
||||
app.channels.detect { |g| g.id.to_s == channel_id.to_s }&.name
|
||||
end
|
||||
|
||||
def application(app_id)
|
||||
Store.applications.games.detect { |g| g.id.to_s == app_id.to_s }
|
||||
end
|
||||
|
||||
def channel(app_id, channel_id)
|
||||
app = Store.applications.games.detect { |g| g.id.to_s == app_id.to_s }
|
||||
return unless app
|
||||
|
||||
app.channels.detect { |g| g.id.to_s == channel_id.to_s }
|
||||
end
|
||||
|
||||
# No application tasks are being done
|
||||
def idle?
|
||||
!busy?
|
||||
|
||||
Reference in New Issue
Block a user