From 341c5ee138d688ac1a7ffb1543ce2a3c9801aa34 Mon Sep 17 00:00:00 2001 From: Lemmy Date: Sat, 21 Feb 2026 22:51:20 -0500 Subject: [PATCH] ncolorchoice: fix default setting and indicator --- Widgets/NColorChoice.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Widgets/NColorChoice.qml b/Widgets/NColorChoice.qml index 4fcf58a02..91aedfd88 100644 --- a/Widgets/NColorChoice.qml +++ b/Widgets/NColorChoice.qml @@ -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)