From 30346f7b73306d6570bae133dce8a41bb129c5c2 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:38:09 +0800 Subject: [PATCH] pref: move font loading operation to application startup --- frontend/src/App.vue | 1 + frontend/src/components/dialogs/PreferencesDialog.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ee5654e..9090610 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -30,6 +30,7 @@ const initializing = ref(false) onMounted(async () => { try { initializing.value = true + await prefStore.loadFontList() await connectionStore.initConnections() if (prefStore.autoCheckUpdate) { prefStore.checkForUpdate() diff --git a/frontend/src/components/dialogs/PreferencesDialog.vue b/frontend/src/components/dialogs/PreferencesDialog.vue index 6bf5062..341e0f7 100644 --- a/frontend/src/components/dialogs/PreferencesDialog.vue +++ b/frontend/src/components/dialogs/PreferencesDialog.vue @@ -16,7 +16,6 @@ const initPreferences = async () => { try { loading.value = true tab.value = 'general' - await prefStore.loadFontList() await prefStore.loadPreferences() prevPreferences.value = { general: prefStore.general,