fix: empty trash button visible

This commit is contained in:
kateleet 2021-12-28 14:13:20 +08:00
parent a44856a2fb
commit ce716acdb7

View file

@ -301,6 +301,8 @@ Item {
font.pointSize: 10
onClicked: dirModel.emptyTrash()
visible: dirModel.url === "trash:///"
&& _viewLoader.item
&& _viewLoader.item.count > 0
focusPolicy: Qt.NoFocus
}
}