From ce716acdb7941777710341034c468fa8ad30c556 Mon Sep 17 00:00:00 2001 From: kateleet Date: Tue, 28 Dec 2021 14:13:20 +0800 Subject: [PATCH] fix: empty trash button visible --- qml/FolderPage.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qml/FolderPage.qml b/qml/FolderPage.qml index 0ad50be..82d4900 100644 --- a/qml/FolderPage.qml +++ b/qml/FolderPage.qml @@ -301,6 +301,8 @@ Item { font.pointSize: 10 onClicked: dirModel.emptyTrash() visible: dirModel.url === "trash:///" + && _viewLoader.item + && _viewLoader.item.count > 0 focusPolicy: Qt.NoFocus } }