mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
Fixed boot saving in a thread causing png based icons to be blank, improvements to server browser to show same team and score data as android app, fixed settings page not using a find height for containers causing them to not position properly on initial gui regeneration, task fail fast now checks for write access to target path, fail fast now raises an exception to prevent incorrect fail fast check from being reported.
This commit is contained in:
@@ -7,6 +7,8 @@ class W3DHub
|
||||
Store[:settings] = Settings.new
|
||||
Store[:application_manager] = ApplicationManager.new
|
||||
|
||||
Store[:main_thread_queue] = []
|
||||
|
||||
Store.settings.save_settings
|
||||
|
||||
begin
|
||||
@@ -23,6 +25,10 @@ class W3DHub
|
||||
super
|
||||
|
||||
Store.application_manager.start_next_available_task if Store.application_manager.idle?
|
||||
|
||||
while (block = Store.main_thread_queue.shift)
|
||||
block&.call
|
||||
end
|
||||
end
|
||||
|
||||
def gain_focus
|
||||
@@ -52,13 +58,7 @@ class W3DHub
|
||||
end
|
||||
|
||||
def main_thread_queue
|
||||
if current_state.is_a?(W3DHub::States::Interface)
|
||||
current_state.main_thread_queue
|
||||
else
|
||||
warn "Task will not be run for:"
|
||||
warn caller
|
||||
[]
|
||||
end
|
||||
Store.main_thread_queue
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user