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:
2 files changed
+6
-7
No files matched your search
@@ -506,7 +506,7 @@ export default function RootLayout ({
|
||||
: d
|
||||
)
|
||||
)
|
||||
if (await settings?.get<boolean>('notifications-allowed'))
|
||||
if (await settings?.get<boolean>('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<boolean>('notifications-allowed'))
|
||||
if (await settings?.get<boolean>('notificationsAllowed'))
|
||||
await notifyUser(
|
||||
'Download Failed',
|
||||
`The download for version ${info.displayName} has failed.`
|
||||
|
||||
@@ -51,12 +51,11 @@ export default function Settings () {
|
||||
<input
|
||||
type='text'
|
||||
value={linuxWineCommand}
|
||||
onChange={async e => {
|
||||
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)}
|
||||
></input>
|
||||
<div title='The theme you want the launcher to use.'>
|
||||
<label className='text-lg'>Theme:</label>
|
||||
|
||||
Reference in new issue
Block a user