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)} >