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:
2022-02-21 09:29:40 -06:00
parent 9be118b1ad
commit 8ba577d5fd
8 changed files with 72 additions and 49 deletions

View File

@@ -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