mirror of https://github.com/KDE/kasts.git
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:
parent
aa5dd6bdbf
commit
0d275b8400
|
@ -51,6 +51,7 @@ if(ANDROID)
|
|||
document-export
|
||||
document-open-folder
|
||||
edit-delete-remove
|
||||
edit-clear-all
|
||||
download
|
||||
media-playlist-append
|
||||
media-seek-backward
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue