From df04935fbe2368ed984ad55c7bf564cf671d3723 Mon Sep 17 00:00:00 2001 From: kateleet Date: Sun, 26 Dec 2021 17:09:37 +0800 Subject: [PATCH] fix(trash): empty trash option visible --- qml/main.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index ff21851..39641f3 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -37,10 +37,6 @@ Item { mainWindow.updateSize() } - Component.onCompleted: { - console.log(Settings.style) - } - DropArea { anchors.fill: parent enabled: true @@ -176,6 +172,7 @@ Item { MenuItem { text: qsTr("Empty Trash") onTriggered: trash.emptyTrash() + visible: trash.count !== 0 } } }