mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-23 23:08:06 +08:00
pref: move font loading operation to application startup
This commit is contained in:
parent
aef8830911
commit
30346f7b73
@ -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()
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user