mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 04:37:33 +01:00
Fix duplicate items under vk.com after login.
This commit is contained in:
parent
0a5334a52a
commit
71247781eb
@ -579,19 +579,21 @@ void VkService::ChangeConnectionState(Vreen::Client::State state) {
|
||||
switch (state) {
|
||||
case Vreen::Client::StateOnline:
|
||||
emit LoginSuccess(true);
|
||||
UpdateRoot();
|
||||
break;
|
||||
|
||||
case Vreen::Client::StateInvalid:
|
||||
case Vreen::Client::StateOffline:
|
||||
emit LoginSuccess(false);
|
||||
UpdateRoot();
|
||||
break;
|
||||
case Vreen::Client::StateConnecting:
|
||||
break;
|
||||
return;
|
||||
default:
|
||||
qLog(Error) << "Wrong connection state " << state;
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!root_item_->data(InternetModel::Role_CanLazyLoad).toBool()) {
|
||||
UpdateRoot();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user