From 61863f14e31850b2bfafda8c65fca439a070e91f Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sat, 7 Mar 2015 15:04:18 +0100 Subject: [PATCH] Add "Refresh" item to podcast context menu --- touch/PodcastsPage.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/touch/PodcastsPage.qml b/touch/PodcastsPage.qml index 309b8ca..b07129f 100644 --- a/touch/PodcastsPage.qml +++ b/touch/PodcastsPage.qml @@ -109,6 +109,12 @@ SlidePage { onClicked: pgst.loadPage('EpisodesPage.qml', {'podcast_id': id, 'title': title}); onPressAndHold: { pgst.showSelection([ + { + label: 'Refresh', + callback: function () { + py.call('main.check_for_episodes', [url]); + }, + }, { label: 'Unsubscribe', callback: function () { @@ -116,7 +122,8 @@ SlidePage { pgst.showConfirmation(title, 'Unsubscribe', 'Cancel', 'Remove this podcast and all downloaded episodes?', Icons.trash, function () { ctx.py.call('main.unsubscribe', [ctx.id]); }); - } }, + }, + }, { label: 'Rename', callback: function () {