mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 06:43:55 +00:00
Comment out a few debug prints
This commit is contained in:
@@ -105,9 +105,9 @@ module W3DHubLauncher
|
||||
step = @steps.shift
|
||||
step&.call
|
||||
|
||||
pp (1.0 - (@steps.size / @step_count.to_f)), @steps.size, @step_count
|
||||
# pp (1.0 - (@steps.size / @step_count.to_f)), @steps.size, @step_count
|
||||
@progress_bar.value = (1.0 - (@steps.size / @step_count.to_f))
|
||||
puts
|
||||
|
||||
|
||||
if step.nil? && @initialization_acceptable
|
||||
after(100) do
|
||||
|
||||
@@ -87,7 +87,7 @@ module W3DHubLauncher
|
||||
def populate_game_info
|
||||
# FIXME: We should be able to query an api to figure out the installation state, instead of explictly writing it out like this...
|
||||
application = MemCache[:settings].applications.find { |app| app.id == @current_app.id }
|
||||
pp application
|
||||
# pp application
|
||||
|
||||
@game_info_container.clear do
|
||||
# logo
|
||||
@@ -117,7 +117,7 @@ module W3DHubLauncher
|
||||
button safe_get_image("#{ROOT_PATH}/media/icons/singleplayer.png"), tip: "Single player", image_height: 1.0, background_nine_slice: NINE_SLICE_SQUARE, **CTA_BUTTON_THEME
|
||||
button safe_get_image("#{ROOT_PATH}/media/icons/gear.png"), tip: "Options", image_height: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_RIGHT, **CTA_BUTTON_THEME
|
||||
elsif @current_app.servicable?
|
||||
pp @current_app
|
||||
# pp @current_app
|
||||
button "Import", enabled: false, tip: "Import existing application installation", fill: true, height: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_LEFT, **CTA_BUTTON_THEME
|
||||
button "Download", tip: "Download and install application", fill: true, height: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_RIGHT, **CTA_BUTTON_THEME
|
||||
else
|
||||
|
||||
@@ -52,7 +52,7 @@ module W3DHubLauncher
|
||||
|
||||
# event from Worker received
|
||||
def handle_event(event, data)
|
||||
pp [event, data]
|
||||
# pp [event, data]
|
||||
|
||||
case event
|
||||
when STATUS_ERROR, STATUS_COMPLETE
|
||||
|
||||
@@ -36,7 +36,7 @@ module W3DHubLauncher
|
||||
if response.success?
|
||||
result.data = response.read
|
||||
else
|
||||
pp response
|
||||
# pp response
|
||||
result.error = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,6 +8,7 @@ require "socket"
|
||||
require "rexml"
|
||||
require "base64"
|
||||
require "logger"
|
||||
require "digest"
|
||||
|
||||
require "async"
|
||||
require "async/http/internet/instance"
|
||||
|
||||
Reference in New Issue
Block a user