修改文件夹内显示置顶功能bug

This commit is contained in:
gjq 2023-04-14 10:09:15 +08:00
parent 069a392679
commit 848b1f1804
1 changed files with 3 additions and 2 deletions

View File

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