Skip to content

Commit

Permalink
[video] Movies/Versions node: Remove 'Play from here' from 'New versi…
Browse files Browse the repository at this point in the history
…on...' context menu item - makes no sense. Remove 'Manage...' context menu item from the version items, because the manage functions (currently) only work for video versions for cetain videos, not the version itself.
  • Loading branch information
ksooo committed Jan 1, 2024
1 parent 15c3256 commit bd1c13f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/video/windows/GUIWindowVideoNav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ bool CGUIWindowVideoNav::GetDirectory(const std::string &strDirectory, CFileItem
newVideoVersion->SetLabel(g_localizeStrings.Get(40004));
newVideoVersion->SetLabelPreformatted(true);
newVideoVersion->SetSpecialSort(SortSpecialOnTop);
newVideoVersion->SetProperty("IsPlayable", false);
items.Add(newVideoVersion);
}
}
Expand Down Expand Up @@ -817,7 +818,8 @@ void CGUIWindowVideoNav::GetContextButtons(int itemNumber, CContextButtons &butt
item->GetVideoInfoTag()->m_type == MediaTypeMusicVideo || // musicvideos
item->GetVideoInfoTag()->m_type == "tag" || // tags
item->GetVideoInfoTag()->m_type == MediaTypeVideoCollection || // sets
item->GetVideoInfoTag()->m_type == MediaTypeVideoVersion)) // videoversions
(item->GetVideoInfoTag()->m_type == MediaTypeVideoVersion &&
item->GetVideoInfoTag()->m_iFileId != -1))) // videoversions for a certain video
{
buttons.Add(CONTEXT_BUTTON_EDIT, 16106);
}
Expand Down

0 comments on commit bd1c13f

Please sign in to comment.