Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PVR] Recordings window: Respect setting SETTING_MYVIDEOS_SELECTACTIO… #10333

Merged
merged 1 commit into from Aug 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 25 additions & 2 deletions xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
Expand Up @@ -262,11 +262,34 @@ bool CGUIWindowPVRRecordings::OnMessage(CGUIMessage &message)
{
case ACTION_SELECT_ITEM:
case ACTION_MOUSE_LEFT_CLICK:
switch(CSettings::GetInstance().GetInt(CSettings::SETTING_MYVIDEOS_SELECTACTION))

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

{
case SELECT_ACTION_CHOOSE:
OnPopupMenu(iItem);
bReturn = true;
break;
case SELECT_ACTION_PLAY_OR_RESUME:
PlayFile(m_vecItems->Get(iItem).get(), false, true);

This comment was marked as spam.

This comment was marked as spam.

bReturn = true;
break;
case SELECT_ACTION_RESUME:
{
CFileItemPtr item(m_vecItems->Get(iItem));
const std::string resumeString = GetResumeString(*item);
item->m_lStartOffset = resumeString.empty() ? 0 : STARTOFFSET_RESUME;
PlayFile(item.get(), false, false);
bReturn = true;
break;
}
case SELECT_ACTION_INFO:
ShowRecordingInfo(m_vecItems->Get(iItem).get());
bReturn = true;
break;
}
break;
case ACTION_PLAY:
{
bReturn = PlayFile(m_vecItems->Get(iItem).get());
break;
}
case ACTION_CONTEXT_MENU:
case ACTION_MOUSE_RIGHT_CLICK:
OnPopupMenu(iItem);
Expand Down