Commit 6d880a95 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Update ServiceModel account data when displayname is changed

parent c6830c7c
......@@ -128,6 +128,7 @@ void ServicesModel::setAccount(QObject* account)
d->account = qobject_cast<Accounts::Account*>(account);
if (d->account) {
connect(d->account, &Accounts::Account::displayNameChanged, this, &ServicesModel::accountChanged);
connect(d->account, &Accounts::Account::enabledChanged, this, [this](const QString& serviceName, bool /*enabled*/){
int i{0};
for (const Accounts::Service& service : d->services) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment