mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Ducktape on libui for native file open dialogs
This commit is contained in:
@@ -31,7 +31,7 @@ class W3DHub
|
||||
|
||||
flow(width: 1.0, fill: true) do
|
||||
@game_path = edit_line "#{@game&.path}", fill: true, height: 1.0
|
||||
button "Browse...", width: 128, height: 1.0, enabled: W3DHub.unix?, tip: W3DHub.unix? ? "Browse for game executable" : "Not available on Windows" do
|
||||
button "Browse...", width: 128, height: 1.0, tip: "Browse for game executable" do
|
||||
path = W3DHub.ask_file
|
||||
@game_path.value = path if !path.empty? && File.exist?(path)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user