Update account list upon successfull remote provisioning

This commit is contained in:
Christophe Deschamps 2025-01-28 11:53:09 +01:00
parent 12d9fdb5ae
commit 62806c94c7

View file

@ -84,7 +84,14 @@ void AccountList::setSelf(QSharedPointer<AccountList> me) {
});
mModelConnection->makeConnectToModel(&CoreModel::accountRemoved, [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,
const std::string &message) {
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
if (status == linphone::ConfiguringState::Successful) {
emit lUpdate();
}
});
lUpdate(true);
}