Add "Refresh" item to podcast context menu

This commit is contained in:
Thomas Perl 2015-03-07 15:04:18 +01:00
parent 8caf02e713
commit 61863f14e3

View file

@ -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 () {