mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Recreate the windows 7 thumbbar buttons if the window is hidden and then shown again. Fixes issue #1547
This commit is contained in:
parent
48b7dc3501
commit
8e9c913605
@ -81,6 +81,12 @@ void Windows7ThumbBar::HandleWinEvent(MSG* msg) {
|
||||
}
|
||||
|
||||
if (msg->message == button_created_message_id_) {
|
||||
// Unref the old taskbar list if we had one
|
||||
if (taskbar_list_) {
|
||||
reinterpret_cast<ITaskbarList3*>(taskbar_list_)->Release();
|
||||
taskbar_list_ = NULL;
|
||||
}
|
||||
|
||||
if (!taskbar_list_) {
|
||||
// Create the taskbar list for the first time
|
||||
if (CoCreateInstance(CLSID_ITaskbarList, NULL, CLSCTX_ALL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user