Skip to content

Commit

Permalink
Add "Refresh" item to podcast context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Mar 7, 2015
1 parent 8caf02e commit 61863f1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion touch/PodcastsPage.qml
Expand Up @@ -109,14 +109,21 @@ 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 () {
var ctx = { py: py, id: id };
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 () {
Expand Down

0 comments on commit 61863f1

Please sign in to comment.