diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2014-10-24 15:32:51 +0400 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2014-10-27 00:59:43 +0300 |
commit | 602fa06651a7e6af2fcb58c011af5cc1ac7ef372 (patch) | |
tree | 479a40c8d4226ef028b38152d69966d172930bfd | |
parent | 0b40dd82edcf358d4f9c4c46e8b899e00be259de (diff) |
Reload logo after changing settings when playing audio file without cover-art.
-rw-r--r-- | src/mpc-hc/ChildView.h | 1 | ||||
-rw-r--r-- | src/mpc-hc/MainFrm.cpp | 2 |
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();
|