diff options
Diffstat (limited to 'qml')
-rw-r--r-- | qml/MainPage.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qml/MainPage.qml b/qml/MainPage.qml index 3c8e8f3..f341ae7 100644 --- a/qml/MainPage.qml +++ b/qml/MainPage.qml @@ -80,7 +80,14 @@ Page { } property variant playlists: spotifySession.user ? spotifySession.user.playlists : null - onPlaylistsChanged: { + Connections { + target: spotifySession.user + onPlaylistsNameChanged: updatePlaylistDialog() + } + + onPlaylistsChanged: updatePlaylistDialog() + + function updatePlaylistDialog() { playlistSelectionDialog.model.clear(); if (playlists === null) |