diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index ab6b3c5..4c9040c 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -175,7 +175,7 @@ fn launch_game(app: AppHandle, name: String, executable: String, wine: bool) { .show(|_| {}); return; } - let result = if wine && (platform() == "linux" || platform() == "macos") { + let result = if wine && platform() == "linux" { let wine_path_output = Command::new("which").arg("wine").output(); let wine_path = match wine_path_output { Ok(output) if output.status.success() => { diff --git a/src/main.tsx b/src/main.tsx index 8f7e3ba..9a2aa8a 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -178,7 +178,7 @@ function App () { newDownloads.forEach(download => { let plat = p - if ((p === 'macos' || p === 'linux') && useWine) { + if (p === 'linux' && useWine) { if ( !download.version.platforms.includes(p) && download.version.platforms.includes('windows') diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index 886e5df..cec2aa1 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -69,9 +69,7 @@ export default function Settings ({ normalConfig }: SettingsProps) { break } }} - className={ - platform() == 'linux' || platform() == 'macos' ? '' : 'hidden' - } + className={platform() == 'linux' ? '' : 'hidden'} /> )}