Commit 3f093c39 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[CurrentContainmentActionsModel] Emit configurationChanged when action is added/removed/edited

Removes the need for the UI to explicitly do this on every action.

Differential Revision: https://phabricator.kde.org/D7626
parent 856e5a25
......@@ -132,6 +132,8 @@ bool CurrentContainmentActionsModel::append(const QString &action, const QString
m_removedTriggers.removeAll(action);
appendRow(item);
emit configurationChanged();
return true;
}
......@@ -166,6 +168,8 @@ void CurrentContainmentActionsModel::update(int row, const QString &action, cons
m_plugins[action]->restore(tempConfig);
setData(idx, m_plugins[action]->pluginInfo().property(QStringLiteral("X-Plasma-HasConfigurationInterface")).toBool(), HasConfigurationInterfaceRole);
}
emit configurationChanged();
}
}
......@@ -178,6 +182,7 @@ void CurrentContainmentActionsModel::remove(int row)
delete m_plugins[action];
m_plugins.remove(action);
m_removedTriggers << action;
emit configurationChanged();
}
}
......
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