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 () => {
try {
initializing.value = true
await prefStore.loadFontList()
await connectionStore.initConnections()
if (prefStore.autoCheckUpdate) {
prefStore.checkForUpdate()

View File

@ -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,