refactor: App.vue 整包写回改为始终基于最新设置,彻底消除旧快照覆盖隐患
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled

This commit is contained in:
AxTps committed 2026-10-02 20:38:31 +08:00
1 parent 8ec5cf104c
commit 457dfd8c30
1 file changed
+2 -6
+2 -6
View File
@@ -143,7 +143,7 @@ import {
isNetworkMetered,
setRestartAfterPendingUpdate,
} from '@/helpers/utils.js'
import { installUiScale, setUiScale, uiScale } from '@/helpers/ui-scale'
import { installUiScale, setUiScale } from '@/helpers/ui-scale'
import { start_join_server, start_join_singleplayer_world } from '@/helpers/worlds.ts'
import i18n, { resolveInitialLocale } from '@/i18n.config'
import {
@@ -1106,8 +1106,6 @@ async function setupApp() {
const resolvedLocale = resolveInitialLocale(navigator.languages)
i18n.global.locale.value = resolvedLocale
initialSettings.locale = resolvedLocale
initialSettings.ui_scale = uiScale.value
initialSettings.feature_flags = { ...themeStore.featureFlags }
await setSettings(initialSettings)
}
@@ -1262,9 +1260,7 @@ async function replayOnboarding(mode) {
async function finishOnboarding() {
const wasReplay = onboardingReplay.value
const settings = onboardingSettings.value ?? (await getSettings())
settings.ui_scale = uiScale.value
settings.feature_flags = { ...themeStore.featureFlags }
const settings = await getSettings()
if (!onboardingReplay.value) {
if (onboardingMode.value === 'instance') {
settings.onboarding_instance_tour_completed = true