diff options
Diffstat (limited to 'components/effects')
| -rw-r--r-- | components/effects/ColouredIcon.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/effects/ColouredIcon.qml b/components/effects/ColouredIcon.qml index a858c25..b711b88 100644 --- a/components/effects/ColouredIcon.qml +++ b/components/effects/ColouredIcon.qml @@ -19,12 +19,12 @@ IconImage { } layer.onEnabledChanged: { - if (layer.enabled) - CUtils.getDominantColour(this); + if (layer.enabled && status === Image.Ready) + CUtils.getDominantColour(this, c => dominantColour = c); } onStatusChanged: { if (layer.enabled && status === Image.Ready) - CUtils.getDominantColour(this); + CUtils.getDominantColour(this, c => dominantColour = c); } } |