FIx issue with wine command input box showing even if wine is not enabled on linux & fix a notification issue

This commit is contained in:
Lncvrt committed 2026-04-13 13:08:43 -07:00
1 parent b8498d36e4
commit beb5ce175e
2 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -506,7 +506,7 @@ export default function RootLayout ({
: d : d
) )
) )
if (await settings?.get<boolean>('notifications-allowed')) if (await settings?.get<boolean>('notificationsAllowed'))
await notifyUser( await notifyUser(
'Download Failed', 'Download Failed',
`The download for version ${info.displayName} has failed.` `The download for version ${info.displayName} has failed.`
@@ -579,7 +579,7 @@ export default function RootLayout ({
: d : d
) )
) )
if (await settings?.get<boolean>('notifications-allowed')) if (await settings?.get<boolean>('notificationsAllowed'))
await notifyUser( await notifyUser(
'Download Failed', 'Download Failed',
`The download for version ${info.displayName} has failed.` `The download for version ${info.displayName} has failed.`
+4 -5
View File
@@ -51,12 +51,11 @@ export default function Settings () {
<input <input
type='text' type='text'
value={linuxWineCommand} value={linuxWineCommand}
onChange={async e => { onChange={async e =>
await settings?.set('linuxWineCommand', e.target.value) await settings?.set('linuxWineCommand', e.target.value)
}} }
className={`input-field my-1 ${ className='input-field my-1'
platform() == 'linux' && linuxWineCommand ? '' : 'hidden' hidden={!(platform() == 'linux' && linuxUseWine)}
}`}
></input> ></input>
<div title='The theme you want the launcher to use.'> <div title='The theme you want the launcher to use.'>
<label className='text-lg'>Theme:</label> <label className='text-lg'>Theme:</label>