Verified Commit acce75cd authored by Fushan Wen's avatar Fushan Wen
Browse files

kcms/colors: Simplify `isCustomColor`

parent ad32f4f7
......@@ -286,9 +286,8 @@ KCM.GridViewKCM {
ColorRadioButton {
id: customColorIndicator
property bool isCustomColor: root.accentColor ?
!colorRepeater.model.some(color => Qt.colorEqual(color, root.accentColor))
: false
property bool isCustomColor: root.accentColor
&& !colorRepeater.model.some(color => Qt.colorEqual(color, root.accentColor))
/* The qt binding will keep the binding alive as well as uncheck the button
* we can't just disable the button because then the icon will become grey
......
Supports Markdown
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