Skip to content

Commit

Permalink
Merge pull request xbmc#24389 from ksooo/video-versions-fix-ctx-menu
Browse files Browse the repository at this point in the history
[video] Movies window: Movies/Versions node: Context menu fixes
  • Loading branch information
ksooo authored Jan 2, 2024
2 parents f4d45c8 + bd1c13f commit 0d5c86c
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 0d5c86c

Please sign in to comment.