Update account list when core is in state GlobalOn
This commit is contained in:
parent
8003b09e3b
commit
fdbe13928a
1 changed files with 9 additions and 8 deletions
|
|
@ -84,14 +84,15 @@ void AccountList::setSelf(QSharedPointer<AccountList> me) {
|
||||||
});
|
});
|
||||||
mModelConnection->makeConnectToModel(&CoreModel::accountRemoved, [this] { emit lUpdate(); });
|
mModelConnection->makeConnectToModel(&CoreModel::accountRemoved, [this] { emit lUpdate(); });
|
||||||
mModelConnection->makeConnectToModel(&CoreModel::accountAdded, [this] { emit lUpdate(); });
|
mModelConnection->makeConnectToModel(&CoreModel::accountAdded, [this] { emit lUpdate(); });
|
||||||
QObject::connect(CoreModel::getInstance().get(), &CoreModel::configuringStatus, this,
|
|
||||||
[this](const std::shared_ptr<linphone::Core> &core, linphone::ConfiguringState status,
|
mModelConnection->makeConnectToModel(
|
||||||
const std::string &message) {
|
&CoreModel::globalStateChanged,
|
||||||
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
|
[this](const std::shared_ptr<linphone::Core> &core, linphone::GlobalState gstate, const std::string &message) {
|
||||||
if (status == linphone::ConfiguringState::Successful) {
|
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
|
||||||
emit lUpdate();
|
if (gstate == linphone::GlobalState::On) {
|
||||||
}
|
emit lUpdate();
|
||||||
});
|
}
|
||||||
|
});
|
||||||
lUpdate(true);
|
lUpdate(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue