scripting: Reload SceneEffect configuration when effect is reconfigured

This ensures that the SceneEffect uses new settings when KCM changes
them.
This commit is contained in:
Vlad Zahorodnii 2023-10-19 11:50:35 +03:00
parent bf602ccd44
commit 509b9e8e3f
2 changed files with 7 additions and 0 deletions

View file

@ -27,6 +27,12 @@ ScriptedQuickSceneEffect::~ScriptedQuickSceneEffect()
{
}
void ScriptedQuickSceneEffect::reconfigure(ReconfigureFlags flags)
{
m_configLoader->load();
Q_EMIT m_configLoader->configChanged();
}
int ScriptedQuickSceneEffect::requestedEffectChainPosition() const
{
return m_requestedEffectChainPosition;

View file

@ -64,6 +64,7 @@ public:
void setMetaData(const KPluginMetaData &metaData);
void reconfigure(ReconfigureFlags flags) override;
int requestedEffectChainPosition() const override;
bool isVisible() const;