isFirstOpen message

This commit is contained in:
FTCHD
2025-02-02 12:53:02 +02:00
parent 14251bb885
commit db4b863d50
2 changed files with 17 additions and 0 deletions
+11
View File
@@ -205,5 +205,16 @@ initLoadingTray()
.then(() => waitForHydration())
.then(() => validateInstance())
.then(() => startRclone())
.then(async () => {
const firstOpen = usePersistedStore.getState().isFirstOpen
if (firstOpen) {
await message('Rclone has initialized, you can now find it in the tray menu!', {
title: 'Welcome',
kind: 'info',
okLabel: 'Got it',
})
usePersistedStore.setState({ isFirstOpen: false })
}
})
.then(() => initTray())
.catch(console.error)