Permalink
Browse files

Refs #10804. Allow Jobs>Edit in playback OSD menu for videos.

  • Loading branch information...
stichnot committed Jul 7, 2012
1 parent bde24c5 commit 04ce3c23efc854e23ee8d28802b1ff03e8b45720
Showing with 7 additions and 2 deletions.
  1. +7 −2 mythtv/libs/libmythtv/tv_play.cpp
@@ -11357,10 +11357,11 @@ void TV::FillOSDMenuJobs(const PlayerContext *ctx, OSD *osd,
bool islivetv = StateIsLiveTV(state);
bool isrecorded = state == kState_WatchingPreRecorded;
bool isrecording = state == kState_WatchingRecording;
+ bool isvideo = state == kState_WatchingVideo;
if (category == "MAIN")
{
- if (islivetv || isrecording || isrecorded)
+ if (islivetv || isrecording || isrecorded || isvideo)
{
osd->DialogAddButton(tr("Jobs"), "DIALOG_MENU_JOBS_0",
true, selected == "JOBS");
@@ -11384,9 +11385,13 @@ void TV::FillOSDMenuJobs(const PlayerContext *ctx, OSD *osd,
osd->DialogAddButton(tr("Edit Channel"), "EDIT");
}
- if (isrecorded || isrecording)
+ if (isrecorded || isrecording || isvideo)
{
osd->DialogAddButton(tr("Edit Recording"), "EDIT");
+ }
+
+ if (isrecorded || isrecording)
+ {
osd->DialogAddButton(is_on ? tr("Turn Auto-Expire OFF") :
tr("Turn Auto-Expire ON"), "TOGGLEAUTOEXPIRE");
}

0 comments on commit 04ce3c2

Please sign in to comment.