From beb5ce175e9a3d15050677a5e3765066d9c254b2 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Mon, 13 Apr 2026 13:08:43 -0700 Subject: [PATCH] FIx issue with wine command input box showing even if wine is not enabled on linux & fix a notification issue --- src/app/main/layout.tsx | 4 ++-- src/app/main/settings/page.tsx | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/main/layout.tsx b/src/app/main/layout.tsx index 345b96c..1be16c0 100644 --- a/src/app/main/layout.tsx +++ b/src/app/main/layout.tsx @@ -506,7 +506,7 @@ export default function RootLayout ({ : d ) ) - if (await settings?.get('notifications-allowed')) + if (await settings?.get('notificationsAllowed')) await notifyUser( 'Download Failed', `The download for version ${info.displayName} has failed.` @@ -579,7 +579,7 @@ export default function RootLayout ({ : d ) ) - if (await settings?.get('notifications-allowed')) + if (await settings?.get('notificationsAllowed')) await notifyUser( 'Download Failed', `The download for version ${info.displayName} has failed.` diff --git a/src/app/main/settings/page.tsx b/src/app/main/settings/page.tsx index b40a0f7..e63ef47 100644 --- a/src/app/main/settings/page.tsx +++ b/src/app/main/settings/page.tsx @@ -51,12 +51,11 @@ export default function Settings () { { + onChange={async e => await settings?.set('linuxWineCommand', e.target.value) - }} - className={`input-field my-1 ${ - platform() == 'linux' && linuxWineCommand ? '' : 'hidden' - }`} + } + className='input-field my-1' + hidden={!(platform() == 'linux' && linuxUseWine)} >