linux startup window
Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
@@ -48,6 +48,11 @@ export async function initRclone(args: string[]) {
|
||||
}
|
||||
console.log('[initRclone] provision succeeded')
|
||||
useStore.setState({ startupStatus: 'initialized' })
|
||||
|
||||
if (!['windows', 'macos'].includes(platform())) {
|
||||
usePersistedStore.setState({ hideStartup: true })
|
||||
}
|
||||
|
||||
internal = true
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +109,8 @@ interface PersistedState {
|
||||
updateConfigFile: (id: string, configFile: Partial<ConfigFile>) => void
|
||||
|
||||
lastSkippedVersion: string | undefined
|
||||
|
||||
hideStartup: boolean
|
||||
}
|
||||
|
||||
const getStorage = (store: LazyStore): StateStorage => ({
|
||||
@@ -249,6 +251,8 @@ export const usePersistedStore = create<PersistedState>()(
|
||||
})),
|
||||
|
||||
lastSkippedVersion: undefined,
|
||||
|
||||
hideStartup: false,
|
||||
}),
|
||||
{
|
||||
name: 'store',
|
||||
|
||||
@@ -358,6 +358,11 @@ async function startupMounts() {
|
||||
}
|
||||
|
||||
async function showStartup() {
|
||||
const hideStartup = usePersistedStore.getState().hideStartup
|
||||
if (hideStartup) {
|
||||
return
|
||||
}
|
||||
|
||||
const startupDisplayed = useStore.getState().startupDisplayed
|
||||
if (!startupDisplayed) {
|
||||
useStore.setState({ startupDisplayed: true, startupStatus: 'initialized' })
|
||||
@@ -365,6 +370,9 @@ async function showStartup() {
|
||||
name: 'Startup',
|
||||
url: '/startup',
|
||||
})
|
||||
if (!['windows', 'macos'].includes(platform())) {
|
||||
usePersistedStore.setState({ hideStartup: true })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user