mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-27 09:23:36 +00:00
chore: generate
This commit is contained in:
parent
57ddfeb756
commit
c4545ab12f
1 changed files with 2 additions and 9 deletions
|
|
@ -89,10 +89,7 @@ export function shouldDisplayTabsToast(
|
|||
return isAppUpgrade(previous, current) || (!previous && existingInstall)
|
||||
}
|
||||
|
||||
export function hasExistingWebState(
|
||||
settings: Promise<string> | string | null,
|
||||
previousVersion: string | undefined,
|
||||
) {
|
||||
export function hasExistingWebState(settings: Promise<string> | string | null, previousVersion: string | undefined) {
|
||||
return settings !== null || previousVersion !== undefined
|
||||
}
|
||||
|
||||
|
|
@ -303,11 +300,7 @@ export const { use: useSettings, provider: SettingsProvider } = createSimpleCont
|
|||
createEffect(() => {
|
||||
if (!ready() || !launchState.classified || platform.platform !== "web") return
|
||||
if (layoutTransitionClassified()) return
|
||||
setStore(
|
||||
"general",
|
||||
"layoutTransitionEligible",
|
||||
hasExistingWebState(settingsInit, launchState.previous),
|
||||
)
|
||||
setStore("general", "layoutTransitionEligible", hasExistingWebState(settingsInit, launchState.previous))
|
||||
})
|
||||
|
||||
createEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue