fix(trash): empty trash option visible

This commit is contained in:
kateleet 2021-12-26 17:09:37 +08:00
parent c189b0fb19
commit df04935fbe

View file

@ -37,10 +37,6 @@ Item {
mainWindow.updateSize() mainWindow.updateSize()
} }
Component.onCompleted: {
console.log(Settings.style)
}
DropArea { DropArea {
anchors.fill: parent anchors.fill: parent
enabled: true enabled: true
@ -176,6 +172,7 @@ Item {
MenuItem { MenuItem {
text: qsTr("Empty Trash") text: qsTr("Empty Trash")
onTriggered: trash.emptyTrash() onTriggered: trash.emptyTrash()
visible: trash.count !== 0
} }
} }
} }