move onboard to startup

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-10-14 02:44:38 +02:00
parent 76a4afdec5
commit 00279fa985
3 changed files with 9 additions and 12 deletions
+5 -5
View File
@@ -357,15 +357,15 @@ async function startupMounts() {
}
}
async function onboardUser() {
const firstOpen = usePersistedStore.getState().isFirstOpen
if (firstOpen) {
async function showStartup() {
const startupDisplayed = useStore.getState().startupDisplayed
if (startupDisplayed) {
useStore.setState({ startupStatus: 'initialized' })
await openSmallWindow({
name: 'Startup',
url: '/startup',
})
usePersistedStore.setState({ isFirstOpen: false })
useStore.setState({ startupDisplayed: false })
}
}
@@ -649,7 +649,7 @@ checkTraySupport()
.then(() => validateInstance())
.then(() => checkAlreadyRunning())
.then(() => startRclone())
.then(() => onboardUser())
.then(() => showStartup())
.then(() => startupMounts())
.then(() => resumeTasks())
.then(() => showDefaultTray())