Fix not reloading when deleting files
This commit is contained in:
parent
3184d33886
commit
3c7328f9c6
7 changed files with 45 additions and 10 deletions
|
@ -36,7 +36,6 @@ class LibraryViewModel(application: Application) :
|
|||
init {
|
||||
viewModelScope.launch {
|
||||
loadLibraryContent()
|
||||
loadHomeSections()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,6 +45,7 @@ class LibraryViewModel(application: Application) :
|
|||
_artists.value = loadArtists.await()
|
||||
_playlist.value = loadPlaylists.await()
|
||||
_genre.value = loadGenres.await()
|
||||
loadHomeSections()
|
||||
}
|
||||
|
||||
private fun loadHomeSections() = viewModelScope.launch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue