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:
parent
e34d9794ad
commit
c42f0f3a00
@ -30,7 +30,6 @@ Kirigami.ScrollablePage {
|
||||
iconName: "view-refresh"
|
||||
text: i18n("Refresh All Podcasts")
|
||||
onTriggered: refreshing = true
|
||||
visible: !Kirigami.Settings.isMobile
|
||||
}
|
||||
|
||||
contextualActions: episodeList.defaultActionList
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user