mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Task now ask Interface to update task status instead of just doing it themselves whenever they want, stubbed apply_patch method, moved unpacking into its own method
This commit is contained in:
@@ -2,6 +2,7 @@ class W3DHub
|
||||
class States
|
||||
class Interface < CyberarmEngine::GuiState
|
||||
attr_reader :main_thread_queue
|
||||
attr_accessor :interface_task_update_pending
|
||||
|
||||
def setup
|
||||
window.show_cursor = true
|
||||
@@ -10,6 +11,8 @@ class W3DHub
|
||||
@service_status = @options[:service_status]
|
||||
@applications = @options[:applications]
|
||||
|
||||
@interface_task_update_pending = nil
|
||||
|
||||
@page = nil
|
||||
@pages = {}
|
||||
|
||||
@@ -141,6 +144,8 @@ class W3DHub
|
||||
while(block = @main_thread_queue.shift)
|
||||
block&.call
|
||||
end
|
||||
|
||||
update_interface_task_status(@interface_task_update_pending) if @interface_task_update_pending
|
||||
end
|
||||
|
||||
def button_down(id)
|
||||
|
||||
Reference in New Issue
Block a user