mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 23:03:53 +00:00
Settings are now set
This commit is contained in:
@@ -28,7 +28,18 @@ module W3DHubLauncher
|
||||
end
|
||||
end
|
||||
|
||||
page(Page::Boot::Terms)
|
||||
Worker::Api.load_settings do |result|
|
||||
if result.okay?
|
||||
on_main_thread( proc {
|
||||
MemCache[:settings] = Worker::Api::Settings.new(JSON.parse(result.data))
|
||||
page(Page::Boot::StartUp)
|
||||
})
|
||||
else
|
||||
on_main_thread( proc {
|
||||
page(Page::Boot::Terms)
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user