mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Added semi-functional websocket implementation of signalR for live server list changes (seems a bit chatty though with some servers only having time remaining changing, fixed crash when a user has an active login but their profile picture was removed, fixed not explicitly saving Cache.fetch'ed items as binary 'wb' resulting in corrupt profile image.
This commit is contained in:
@@ -48,9 +48,10 @@ class W3DHub
|
||||
|
||||
Cache.fetch(internet, account.avatar_uri)
|
||||
|
||||
populate_account_info; page(W3DHub::Pages::Games)
|
||||
populate_account_info
|
||||
page(W3DHub::Pages::Games)
|
||||
else
|
||||
# An error occurred, enable account entry
|
||||
# An error occurred, enable account entry
|
||||
# NOTE: Too many incorrect entries causes lock out (Unknown duration)
|
||||
@username.enabled = true
|
||||
@password.enabled = true
|
||||
@@ -68,8 +69,13 @@ class W3DHub
|
||||
end
|
||||
|
||||
if Store.account
|
||||
populate_account_info
|
||||
page(W3DHub::Pages::Games)
|
||||
Async do
|
||||
internet = Async::HTTP::Internet.instance
|
||||
Cache.fetch(internet, Store.account.avatar_uri)
|
||||
|
||||
populate_account_info
|
||||
page(W3DHub::Pages::Games)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user