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:
parent
bf602ccd44
commit
509b9e8e3f
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -64,6 +64,7 @@ public:
|
|||
|
||||
void setMetaData(const KPluginMetaData &metaData);
|
||||
|
||||
void reconfigure(ReconfigureFlags flags) override;
|
||||
int requestedEffectChainPosition() const override;
|
||||
|
||||
bool isVisible() const;
|
||||
|
|
Loading…
Reference in a new issue