ncolorchoice: fix default setting and indicator

This commit is contained in:
Lemmy
2026-02-21 22:51:20 -05:00
parent d678db7d52
commit 341c5ee138
+2 -2
View File
@@ -10,11 +10,11 @@ RowLayout {
property string description: I18n.tr("common.select-color-description")
property string tooltip: ""
property string currentKey: ""
property var defaultValue: "none"
property var defaultValue: undefined
property var noneColor: undefined // color declared as var so we can nullify
property var noneOnColor: undefined // color declared as var so we can nullify
readonly property bool isValueChanged: currentKey !== defaultValue
readonly property bool isValueChanged: (defaultValue !== undefined) && (currentKey !== defaultValue)
readonly property string indicatorTooltip: {
I18n.tr("panels.indicator.default-value", {
"value": defaultValue === "" ? "(empty)" : String(defaultValue)