mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 06:37:16 +02:00
Fix:Load local settings before attempting server connection #976
This commit is contained in:
+2
-1
@@ -318,6 +318,8 @@ export default {
|
|||||||
if (this.$store.state.isFirstLoad) {
|
if (this.$store.state.isFirstLoad) {
|
||||||
this.$store.commit('setIsFirstLoad', false)
|
this.$store.commit('setIsFirstLoad', false)
|
||||||
|
|
||||||
|
this.loadSavedSettings()
|
||||||
|
|
||||||
const deviceData = await this.$db.getDeviceData()
|
const deviceData = await this.$db.getDeviceData()
|
||||||
this.$store.commit('setDeviceData', deviceData)
|
this.$store.commit('setDeviceData', deviceData)
|
||||||
|
|
||||||
@@ -336,7 +338,6 @@ export default {
|
|||||||
console.log(`[default] finished connection attempt or already connected ${!!this.user}`)
|
console.log(`[default] finished connection attempt or already connected ${!!this.user}`)
|
||||||
await this.syncLocalSessions()
|
await this.syncLocalSessions()
|
||||||
|
|
||||||
this.loadSavedSettings()
|
|
||||||
this.hasMounted = true
|
this.hasMounted = true
|
||||||
|
|
||||||
console.log('[default] fully initialized')
|
console.log('[default] fully initialized')
|
||||||
|
|||||||
Reference in New Issue
Block a user