chore: generate
This commit is contained in:
parent
f256a4c538
commit
8cbea4fbb7
1 changed files with 2 additions and 10 deletions
|
|
@ -94,11 +94,7 @@ export function hasExistingWebState(settings: Promise<string> | string | null, p
|
||||||
return settings !== null || previousVersion !== undefined
|
return settings !== null || previousVersion !== undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export function initialAgentVisibility(
|
export function initialAgentVisibility(initialized: boolean | undefined, existing: boolean, previousVersion?: string) {
|
||||||
initialized: boolean | undefined,
|
|
||||||
existing: boolean,
|
|
||||||
previousVersion?: string,
|
|
||||||
) {
|
|
||||||
if (initialized === true) return
|
if (initialized === true) return
|
||||||
return existing || previousVersion !== undefined
|
return existing || previousVersion !== undefined
|
||||||
}
|
}
|
||||||
|
|
@ -282,11 +278,7 @@ export const { use: useSettings, provider: SettingsProvider } = createSimpleCont
|
||||||
})
|
})
|
||||||
const visible = (preference: () => boolean) => createMemo(() => !newLayoutDesigns() || preference())
|
const visible = (preference: () => boolean) => createMemo(() => !newLayoutDesigns() || preference())
|
||||||
const initializeAgentVisibility = (existing: boolean) => {
|
const initializeAgentVisibility = (existing: boolean) => {
|
||||||
const initial = initialAgentVisibility(
|
const initial = initialAgentVisibility(store.general?.agentVisibilityInitialized, existing, launchState.previous)
|
||||||
store.general?.agentVisibilityInitialized,
|
|
||||||
existing,
|
|
||||||
launchState.previous,
|
|
||||||
)
|
|
||||||
if (initial === undefined) return
|
if (initial === undefined) return
|
||||||
batch(() => {
|
batch(() => {
|
||||||
setStore("general", "showCustomAgents", initial)
|
setStore("general", "showCustomAgents", initial)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue