Application: allow opening URLs in Wine.

Valve seems to have fixed that issue with winebrowser not working
properly for URLs.
This commit is contained in:
Guillaume Jacquemin 2024-08-23 17:10:44 +02:00
parent ceaa3ba6e4
commit 975c4c8664
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -196,7 +196,7 @@ Application::drawMainMenu() {
ImGui::EndMenu(); ImGui::EndMenu();
} }
ImGui::BeginDisabled(conf().isRunningInWine()); //ImGui::BeginDisabled(conf().isRunningInWine());
if(ImGui::BeginMenu("Game##GameMenu")) { if(ImGui::BeginMenu("Game##GameMenu")) {
if(ImGui::MenuItem(ICON_FA_PLAY " Run demo##RunDemoMenuItem")) { if(ImGui::MenuItem(ICON_FA_PLAY " Run demo##RunDemoMenuItem")) {
openUri("steam://run/1048390"); openUri("steam://run/1048390");
@ -224,9 +224,9 @@ Application::drawMainMenu() {
ImGui::EndMenu(); ImGui::EndMenu();
} }
ImGui::EndDisabled(); ImGui::EndDisabled();
if(conf().isRunningInWine() && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) { //if(conf().isRunningInWine() && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) {
ImGui::SetTooltip("Not available when running in Wine."); // ImGui::SetTooltip("Not available when running in Wine.");
} //}
#ifdef SAVETOOL_DEBUG_BUILD #ifdef SAVETOOL_DEBUG_BUILD
if(ImGui::BeginMenu("Debug tools")) { if(ImGui::BeginMenu("Debug tools")) {