allow autostart

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-18 16:23:45 +02:00
parent 88735f49e8
commit c63b37ac49
2 changed files with 19 additions and 8 deletions
+12
View File
@@ -37,6 +37,7 @@ export default function RemoteDefaultsDrawer({
onClose: () => void
isOpen: boolean
}) {
const licenseValid = usePersistedStore((state) => state.licenseValid)
const remoteConfigList = usePersistedStore((state) => state.remoteConfigList)
const mergeRemoteConfig = usePersistedStore((state) => state.mergeRemoteConfig)
@@ -412,6 +413,17 @@ export default function RemoteDefaultsDrawer({
<Checkbox
isSelected={config?.mountOnStart || false}
onValueChange={async (value) => {
if (!licenseValid) {
await message(
'Community version does not support mount on startup.',
{
title: 'Missing license',
kind: 'error',
}
)
return
}
if (
!config?.defaultMountPoint ||
!config?.defaultRemotePath
+7 -8
View File
@@ -281,7 +281,6 @@ function GeneralSection() {
const startOnBoot = usePersistedStore((state) => state.startOnBoot)
const setStartOnBoot = usePersistedStore((state) => state.setStartOnBoot)
const licenseValid = usePersistedStore((state) => state.licenseValid)
const [updateButtonText, setUpdateButtonText] = useState('Check for updates')
const [isWorkingUpdate, setIsWorkingUpdate] = useState(false)
@@ -458,13 +457,13 @@ function GeneralSection() {
<Checkbox
isSelected={startOnBoot}
onValueChange={async (value) => {
if (!licenseValid) {
await message('Community version does not support start on boot.', {
title: 'Missing license',
kind: 'error',
})
return
}
// if (!licenseValid) {
// await message('Community version does not support start on boot.', {
// title: 'Missing license',
// kind: 'error',
// })
// return
// }
try {
setStartOnBoot(value)