mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 12:47:31 +01:00
Merge pull request #5175 from ivan-leontiev/fix-vk-dupitems
Fix duplicate items under vk.com after login.
This commit is contained in:
commit
2f7626e9d3
@ -579,19 +579,21 @@ void VkService::ChangeConnectionState(Vreen::Client::State state) {
|
|||||||
switch (state) {
|
switch (state) {
|
||||||
case Vreen::Client::StateOnline:
|
case Vreen::Client::StateOnline:
|
||||||
emit LoginSuccess(true);
|
emit LoginSuccess(true);
|
||||||
UpdateRoot();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Vreen::Client::StateInvalid:
|
case Vreen::Client::StateInvalid:
|
||||||
case Vreen::Client::StateOffline:
|
case Vreen::Client::StateOffline:
|
||||||
emit LoginSuccess(false);
|
emit LoginSuccess(false);
|
||||||
UpdateRoot();
|
|
||||||
break;
|
break;
|
||||||
case Vreen::Client::StateConnecting:
|
case Vreen::Client::StateConnecting:
|
||||||
break;
|
return;
|
||||||
default:
|
default:
|
||||||
qLog(Error) << "Wrong connection state " << state;
|
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