Hide nonfunctional game modifications tab

This commit is contained in:
2024-03-12 09:30:51 -05:00
parent 3f7ec2fb5c
commit e035b1ed58
3 changed files with 7 additions and 5 deletions

View File

@@ -184,7 +184,7 @@ class W3DHub
path = case File.basename(command) path = case File.basename(command)
when "zenity", "matedialog", "qarma" when "zenity", "matedialog", "qarma"
`#{command} --file-selection --directory --title "#{title} #{Dir.home}"` `#{command} --file-selection --directory --title "#{title}"`
when "kdialog" when "kdialog"
`#{command} --title "#{title}" --getexistingdirectory #{Dir.home}"` `#{command} --title "#{title}" --getexistingdirectory #{Dir.home}"`
else else

View File

@@ -232,8 +232,10 @@ class W3DHub
end end
unless Store.offline_mode unless Store.offline_mode
menu_item(I18n.t(:"games.game_modifications")) do if W3DHUB_DEVELOPER
populate_game_modifications(game, channel) menu_item(I18n.t(:"games.game_modifications")) do
populate_game_modifications(game, channel)
end
end end
if game.id != "ren" if game.id != "ren"

View File

@@ -438,8 +438,8 @@ class W3DHub
end end
if W3DHUB_DEVELOPER if W3DHUB_DEVELOPER
list_box(items: (1..12).to_a.map(&:to_s), margin_left: 16, width: 72, tip: "Number of game clients", **TESTING_BUTTON) list_box(items: (1..12).to_a.map(&:to_s), margin_left: 16, width: 72, tip: "Number of game clients", enabled: (game_installed && !game_updatable), **TESTING_BUTTON)
button "Multijoin", tip: "Launch multiple clients with configured username_\#{number}", **TESTING_BUTTON, enabled: true button "Multijoin", tip: "Launch multiple clients with configured username_\#{number}", enabled: (game_installed && !game_updatable), **TESTING_BUTTON
end end
flow(fill: true) flow(fill: true)