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-export
|
||||||
document-open-folder
|
document-open-folder
|
||||||
edit-delete-remove
|
edit-delete-remove
|
||||||
|
edit-clear-all
|
||||||
download
|
download
|
||||||
media-playlist-append
|
media-playlist-append
|
||||||
media-seek-backward
|
media-seek-backward
|
||||||
|
@ -26,6 +26,7 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
text: i18n("No errors logged")
|
text: i18n("No errors logged")
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: errorListDelegate
|
id: errorListDelegate
|
||||||
Kirigami.SwipeListItem {
|
Kirigami.SwipeListItem {
|
||||||
@ -82,6 +83,7 @@ Kirigami.ScrollablePage {
|
|||||||
actions.main: Kirigami.Action {
|
actions.main: Kirigami.Action {
|
||||||
text: i18n("Clear all errors")
|
text: i18n("Clear all errors")
|
||||||
iconName: "edit-clear-all"
|
iconName: "edit-clear-all"
|
||||||
|
visible: !(errorList.count === 0)
|
||||||
onTriggered: ErrorLogModel.clearAll()
|
onTriggered: ErrorLogModel.clearAll()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user