From 975c4c8664c51d92026bdbcf0ec376400ae635ac Mon Sep 17 00:00:00 2001
From: Guillaume Jacquemin <w.jcm59@gmail.com>
Date: Fri, 23 Aug 2024 17:10:44 +0200
Subject: [PATCH] Application: allow opening URLs in Wine.

Valve seems to have fixed that issue with winebrowser not working
properly for URLs.
---
 src/Application/Application_drawMainMenu.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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