From 848b1f1804c1b125ef7cad8dee60995fb5067162 Mon Sep 17 00:00:00 2001 From: gjq Date: Fri, 14 Apr 2023 10:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=E5=86=85=E6=98=BE=E7=A4=BA=E7=BD=AE=E9=A1=B6=E5=8A=9F=E8=83=BD?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/AppControls2/AppItem.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qml/AppControls2/AppItem.qml b/qml/AppControls2/AppItem.qml index b0f570b..4466642 100644 --- a/qml/AppControls2/AppItem.qml +++ b/qml/AppControls2/AppItem.qml @@ -34,7 +34,8 @@ MouseArea { Loader { id: tag property bool recentInsatlled: false - visible: (toTop !== 0) || recentInsatlled + property bool fixToTop: (toTop !== undefined) && (toTop !== 0) + visible: fixToTop || recentInsatlled Layout.alignment: Qt.AlignRight | Qt.AlignVCenter Layout.fillWidth: true Layout.fillHeight: true @@ -60,7 +61,7 @@ MouseArea { } } } - sourceComponent: (toTop === 0) ? tag.recentInsatlled ? tagPoint : null : tagImage + sourceComponent: tag.fixToTop ? tagImage : tag.recentInsatlled ? tagPoint : null } } }