mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-14 10:24:19 +01:00
Remove subsonic songs is we are not connected
This commit is contained in:
parent
f81b7c595c
commit
0a4de71c37
@ -264,6 +264,8 @@ void SubsonicService::ReloadDatabaseFinished() {
|
||||
void SubsonicService::OnLoginStateChanged(
|
||||
SubsonicService::LoginState newstate) {
|
||||
// TODO(Alan Briolat): library refresh logic?
|
||||
if(newstate != LoginState_Loggedin)
|
||||
library_backend_->DeleteAll();
|
||||
}
|
||||
|
||||
void SubsonicService::OnPingFinished(QNetworkReply* reply) {
|
||||
|
Loading…
Reference in New Issue
Block a user