pref: move font loading operation to application startup

This commit is contained in:
tiny-craft 2023-08-28 11:38:09 +08:00
parent aef8830911
commit 30346f7b73
2 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,7 @@ const initializing = ref(false)
onMounted(async () => { onMounted(async () => {
try { try {
initializing.value = true initializing.value = true
await prefStore.loadFontList()
await connectionStore.initConnections() await connectionStore.initConnections()
if (prefStore.autoCheckUpdate) { if (prefStore.autoCheckUpdate) {
prefStore.checkForUpdate() prefStore.checkForUpdate()

View File

@ -16,7 +16,6 @@ const initPreferences = async () => {
try { try {
loading.value = true loading.value = true
tab.value = 'general' tab.value = 'general'
await prefStore.loadFontList()
await prefStore.loadPreferences() await prefStore.loadPreferences()
prevPreferences.value = { prevPreferences.value = {
general: prefStore.general, general: prefStore.general,