Update:Show loading indicator when first connecting to server

This commit is contained in:
advplyr 2023-02-17 17:47:46 -06:00
parent d899fd4d89
commit 08ee08c698
4 changed files with 29 additions and 14 deletions

View file

@ -269,13 +269,12 @@ export default {
onReady() {
// The UI is reporting elsewhere we are ready
this.isReady = true
// TODO: iOS opens last active playback session on app launch. Should be consistent with Android
if (this.isIos) {
this.notifyOnReady()
}
this.notifyOnReady()
},
notifyOnReady() {
// TODO: iOS opens last active playback session on app launch. Should be consistent with Android
if (!this.isIos) return
// If settings aren't loaded yet, native player will receive incorrect settings
console.log('Notify on ready... settingsLoaded:', this.settingsLoaded, 'isReady:', this.isReady)
if (this.settingsLoaded && this.isReady && this.$store.state.isFirstAudioLoad) {