diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c513ebe8..03a51b2d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,6 +51,7 @@ if(ANDROID) document-export document-open-folder edit-delete-remove + edit-clear-all download media-playlist-append media-seek-backward diff --git a/src/qml/ErrorListPage.qml b/src/qml/ErrorListPage.qml index b268f236..911ebb0a 100644 --- a/src/qml/ErrorListPage.qml +++ b/src/qml/ErrorListPage.qml @@ -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() } }