mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Hide nonfunctional game modifications tab
This commit is contained in:
@@ -184,7 +184,7 @@ class W3DHub
|
||||
|
||||
path = case File.basename(command)
|
||||
when "zenity", "matedialog", "qarma"
|
||||
`#{command} --file-selection --directory --title "#{title} #{Dir.home}"`
|
||||
`#{command} --file-selection --directory --title "#{title}"`
|
||||
when "kdialog"
|
||||
`#{command} --title "#{title}" --getexistingdirectory #{Dir.home}"`
|
||||
else
|
||||
|
||||
@@ -232,9 +232,11 @@ class W3DHub
|
||||
end
|
||||
|
||||
unless Store.offline_mode
|
||||
if W3DHUB_DEVELOPER
|
||||
menu_item(I18n.t(:"games.game_modifications")) do
|
||||
populate_game_modifications(game, channel)
|
||||
end
|
||||
end
|
||||
|
||||
if game.id != "ren"
|
||||
menu_item(I18n.t(:"games.repair_installation")) do
|
||||
|
||||
@@ -438,8 +438,8 @@ class W3DHub
|
||||
end
|
||||
|
||||
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)
|
||||
button "Multijoin", tip: "Launch multiple clients with configured username_\#{number}", **TESTING_BUTTON, enabled: true
|
||||
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}", enabled: (game_installed && !game_updatable), **TESTING_BUTTON
|
||||
end
|
||||
|
||||
flow(fill: true)
|
||||
|
||||
Reference in New Issue
Block a user