Show refresh actions also on mobile

This used to be covered by the bottom action buttons, but those have
been removed some time ago.  That only left a pull-down as trigger to
update the feeds, which is non-ideal since it's not explained anywhere.
This commit is contained in:
Bart De Vries 2022-05-23 20:10:46 +02:00
parent e34d9794ad
commit c42f0f3a00
5 changed files with 6 additions and 23 deletions

View File

@ -30,7 +30,6 @@ Kirigami.ScrollablePage {
iconName: "view-refresh"
text: i18n("Refresh All Podcasts")
onTriggered: refreshing = true
visible: !Kirigami.Settings.isMobile
}
contextualActions: episodeList.defaultActionList

View File

@ -53,7 +53,6 @@ Kirigami.ScrollablePage {
iconName: "view-refresh"
text: i18n("Refresh Podcast")
onTriggered: page.refreshing = true
visible: !Kirigami.Settings.isMobile || entryList.count === 0
}
contextualActions: [
@ -66,19 +65,6 @@ Kirigami.ScrollablePage {
pageStack.push("qrc:/FeedDetailsPage.qml", {"feed": feed})
}
}
/* Remove this action for now; there are already actions on the FeedListPage
* and through context menus; it's confusing to mix it with actions on
* entries.
,
Kirigami.Action {
iconName: "delete"
text: i18n("Remove Podcast")
onTriggered: {
while(pageStack.depth > 1)
pageStack.pop()
DataManager.removeFeed(feed)
}
}*/
]
// add the default actions through onCompleted to add them to the ones

View File

@ -44,7 +44,7 @@ Kirigami.ScrollablePage {
iconName: "view-refresh"
text: i18n("Refresh All Podcasts")
onTriggered: refreshing = true
visible: !Kirigami.Settings.isMobile || (episodeList.count === 0 && episodeProxyModel.filterType == EpisodeProxyModel.NoFilter)
visible: episodeProxyModel.filterType == EpisodeProxyModel.NoFilter
}
Kirigami.Dialog {

View File

@ -42,6 +42,11 @@ Kirigami.ScrollablePage {
}
contextualActions: [
Kirigami.Action {
text: i18n("Refresh All Podcasts")
iconName: "view-refresh"
onTriggered: refreshing = true
},
Kirigami.Action {
text: i18n("Add Podcast")
iconName: "list-add"
@ -49,12 +54,6 @@ Kirigami.ScrollablePage {
addSheet.open()
}
},
Kirigami.Action {
text: i18n("Refresh All Podcasts")
iconName: "view-refresh"
onTriggered: refreshing = true
visible: !Kirigami.Settings.isMobile
},
Kirigami.Action {
text: i18n("Import Podcasts...")
iconName: "document-import"

View File

@ -33,7 +33,6 @@ Kirigami.ScrollablePage {
iconName: "view-refresh"
text: i18n("Refresh All Podcasts")
onTriggered: refreshing = true
visible: !Kirigami.Settings.isMobile || queueList.count === 0
}
contextualActions: queueList.defaultActionList