Enable refreshing on QueuePage

This commit is contained in:
Bart De Vries 2021-04-08 22:58:50 +02:00
parent 6cd88f5116
commit 3cbea5eb17
1 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,20 @@ Kirigami.ScrollablePage {
id: queuepage id: queuepage
title: i18n("Queue") title: i18n("Queue")
supportsRefreshing: true
onRefreshingChanged:
if(refreshing) {
Fetcher.fetchAll()
refreshing = false
}
actions.main: Kirigami.Action {
iconName: "view-refresh"
text: i18n("Refresh Feed")
onTriggered: page.refreshing = true
visible: !Kirigami.Settings.isMobile || queueList.count === 0
}
Kirigami.PlaceholderMessage { Kirigami.PlaceholderMessage {
visible: queueList.count === 0 visible: queueList.count === 0