diff options
author | Kai Sommerfeld <3226626+ksooo@users.noreply.github.com> | 2024-02-10 23:01:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 23:01:52 +0100 |
commit | 691f1bca0abb6760f7b9775edf89d81bfdf0628f (patch) | |
tree | cedc73bdba97dc798fc0f1a37b56b3e1d88b3fae | |
parent | 68149f45cc16d57650e10a2d2bed2784d5320378 (diff) | |
parent | 2a8b83e14861bcb633b5846afd3b1b1750662af0 (diff) |
Merge pull request #24677 from ksooo/video-versions-fix-play-using-visibility
[video] Fix 'Play using...' context menu item not visible for version…
-rw-r--r-- | xbmc/video/ContextMenus.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xbmc/video/ContextMenus.cpp b/xbmc/video/ContextMenus.cpp index 2203e42a0e..fa7f454136 100644 --- a/xbmc/video/ContextMenus.cpp +++ b/xbmc/video/ContextMenus.cpp @@ -426,8 +426,11 @@ bool CVideoPlay::Execute(const std::shared_ptr<CFileItem>& itemIn) const bool CVideoPlayUsing::IsVisible(const CFileItem& item) const { - if (item.HasVideoVersions()) - return false; // display "Play version using..." if multiple versions are available. + if (item.HasVideoVersions() && + !CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool( + CSettings::SETTING_VIDEOLIBRARY_SHOWVIDEOVERSIONSASFOLDER) && + !VIDEO::IsVideoAssetFile(item)) + return false; if (item.IsLiveTV()) return false; |