fix(menu): empty trash option visible

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

View file

@ -1864,7 +1864,7 @@ void FolderModel::updateActions()
}
if (QAction *emptyTrash = m_actionCollection.action("emptyTrash")) {
emptyTrash->setVisible(isTrash);
emptyTrash->setVisible(isTrash && rowCount() > 0);
}
if (QAction *del = m_actionCollection.action(QStringLiteral("del"))) {