diff options
author | ksooo <3226626+ksooo@users.noreply.github.com> | 2023-09-04 08:19:38 +0200 |
---|---|---|
committer | ksooo <3226626+ksooo@users.noreply.github.com> | 2023-09-06 08:40:32 +0200 |
commit | 9b4d80da5484e2b0d0e200643530ba8454910920 (patch) | |
tree | 0f2c398029e08af297f98bea069c2e60125c08a4 | |
parent | d025684d226cb88f1169bf6dfcc60d5fe4312b67 (diff) | |
download | xbmc-9b4d80da5484e2b0d0e200643530ba8454910920.tar.xz |
[video] Art selection dialog: Set default icon for 'No graphic' entry according to item's folder attribute.
-rw-r--r-- | xbmc/video/dialogs/GUIDialogVideoInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp index f33515a2bc..63adb8e3fb 100644 --- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp +++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp @@ -1973,7 +1973,7 @@ bool CGUIDialogVideoInfo::ManageVideoItemArtwork(const std::shared_ptr<CFileItem item->SetLabel(g_localizeStrings.Get(13512)); items.Add(item); } - noneitem->SetArt("icon", "DefaultFolder.png"); + noneitem->SetArt("icon", item->m_bIsFolder ? "DefaultFolder.png" : "DefaultPicture.png"); noneitem->SetLabel(g_localizeStrings.Get(13515)); std::string embeddedArt; @@ -2324,7 +2324,7 @@ bool CGUIDialogVideoInfo::OnGetFanart(const std::shared_ptr<CFileItem>& videoIte // add the none option { CFileItemPtr itemNone(new CFileItem("fanart://None", false)); - itemNone->SetArt("icon", "DefaultVideo.png"); + itemNone->SetArt("icon", videoItem->m_bIsFolder ? "DefaultFolder.png" : "DefaultPicture.png"); itemNone->SetLabel(g_localizeStrings.Get(20439)); items.Add(itemNone); } |