From 6462895033933ab1a11e9b2cd0a891fd3a731c79 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 9 Apr 2022 17:30:19 -0400 Subject: [PATCH] If wine is not installed, disable login --- src/launcherwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index 10e9f2a..b153516 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -318,6 +318,10 @@ void LauncherWindow::reloadControls() { loginButton->setText("Login"); } else if(!core.squareLauncher->isGateOpen) { loginButton->setText("Login (Maintenance is in progress)"); +#if defined(Q_OS_LINUX) || defined(Q_OS_MAC) + } else if(!currentProfile().isWineInstalled()) { + loginButton->setText("Login (Wine is not installed)"); +#endif } else { loginButton->setText("Login (Game is not installed)"); }