Don't show clear error button when there are no errors

Also add the icon to the icons to be packed for android.
This commit is contained in:
Bart De Vries 2021-04-26 10:57:55 +02:00
parent aa5dd6bdbf
commit 0d275b8400
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ if(ANDROID)
document-export
document-open-folder
edit-delete-remove
edit-clear-all
download
media-playlist-append
media-seek-backward

View File

@ -26,6 +26,7 @@ Kirigami.ScrollablePage {
text: i18n("No errors logged")
}
Component {
id: errorListDelegate
Kirigami.SwipeListItem {
@ -82,6 +83,7 @@ Kirigami.ScrollablePage {
actions.main: Kirigami.Action {
text: i18n("Clear all errors")
iconName: "edit-clear-all"
visible: !(errorList.count === 0)
onTriggered: ErrorLogModel.clearAll()
}
}