fix(trash): empty trash option visible
This commit is contained in:
parent
c189b0fb19
commit
df04935fbe
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue