Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2014-10-24 15:32:51 +0400
committerKacper Michajłow <kasper93@gmail.com>2014-10-27 00:59:43 +0300
commit602fa06651a7e6af2fcb58c011af5cc1ac7ef372 (patch)
tree479a40c8d4226ef028b38152d69966d172930bfd
parent0b40dd82edcf358d4f9c4c46e8b899e00be259de (diff)
Reload logo after changing settings when playing audio file without cover-art.
-rw-r--r--src/mpc-hc/ChildView.h1
-rw-r--r--src/mpc-hc/MainFrm.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mpc-hc/ChildView.h b/src/mpc-hc/ChildView.h
index 0ab162c6a..bebe69603 100644
--- a/src/mpc-hc/ChildView.h
+++ b/src/mpc-hc/ChildView.h
@@ -54,6 +54,7 @@ public:
void LoadImg(const CString& imagePath = _T(""));
void LoadImg(std::vector<BYTE> buffer);
CSize GetLogoSize();
+ bool IsCustomImgLoaded() const { return m_bCustomImgLoaded; };
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
diff --git a/src/mpc-hc/MainFrm.cpp b/src/mpc-hc/MainFrm.cpp
index db0c95277..cdae0b504 100644
--- a/src/mpc-hc/MainFrm.cpp
+++ b/src/mpc-hc/MainFrm.cpp
@@ -16156,6 +16156,8 @@ void CMainFrame::UpdateControlState(UpdateControlTarget target)
m_wndView.LoadImg(CoverArt::FindExternal(strPath, author));
m_currentCoverPath = strPath;
m_currentCoverAuthor = author;
+ } else if (!m_wndView.IsCustomImgLoaded()) {
+ m_wndView.LoadImg();
}
} else {
m_currentCoverPath.Empty();