summaryrefslogtreecommitdiff
path: root/launcher/components/IComponent.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-18 15:50:57 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-19 20:15:22 +0800
commit7419b49dbd9495f40f09d43bb26115a788d455d6 (patch)
tree79c2bd1275610f39fd8600508de20952dac7e277 /launcher/components/IComponent.qml
parent19289b6dc43d51f0405ce6b5b0c33b2259423fd6 (diff)
refactor(launcher:components): better handle defaults
Diffstat (limited to 'launcher/components/IComponent.qml')
-rw-r--r--launcher/components/IComponent.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/components/IComponent.qml b/launcher/components/IComponent.qml
index 4ff3f2f..4f47b88 100644
--- a/launcher/components/IComponent.qml
+++ b/launcher/components/IComponent.qml
@@ -15,8 +15,8 @@ IRect {
readonly property string inputCleaned: input.toLowerCase().trim()
property string prefix
property bool active: !standalone ? input && _input.startsWith(prefix) : true
- property bool valid: processed?.valid || false
- property bool priority: valid && processed?.priority || false // please set priority to false if it's invalid
+ property bool valid: !standalone ? processed?.valid || false : true
+ property bool priority: !standalone ? valid && processed?.priority || false : true // please set priority to false if it's invalid
property string answer: processed?.answer || ""
property Component preview: Component {
IText {