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 () => {
|
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()
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue