From d461d53d0192df80b232f2762a57571322512702 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Mon, 10 Jul 2023 15:13:28 +0800 Subject: [PATCH] Modify the signal of appwidget. --- frontend/search-app-widget-plugin/provider/data/search.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/search-app-widget-plugin/provider/data/search.qml b/frontend/search-app-widget-plugin/provider/data/search.qml index 6d14b5b..b4686a9 100755 --- a/frontend/search-app-widget-plugin/provider/data/search.qml +++ b/frontend/search-app-widget-plugin/provider/data/search.qml @@ -41,10 +41,10 @@ AppWidget { onDatavalueChanged: updateSearchBarColor(); - onUserStatusChangedSignal: { - if (status === "Normal") { + onUserStatusChanged: { + if (userstatus === "Normal") { mouseArea.enabled = true; - } else if (status === "Editable") { + } else if (userstatus === "Editable") { mouseArea.enabled = false; } }