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 } } }