fix: explorer restart does not recreated thumbnail toolbar buttons (#39551)

fix: explorer restart does not recreated thumbnail toolbar buttons.
This commit is contained in:
tr2-harada 2023-08-21 09:43:49 +09:00 committed by GitHub
parent 95bf9d8adb
commit 9937a2bbe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View file

@ -221,6 +221,12 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
return true;
}
if (message == taskbar_created_message_) {
// We need to reset all of our buttons because the taskbar went away.
taskbar_host_.RestoreThumbarButtons(GetAcceleratedWidget());
return true;
}
switch (message) {
// Screen readers send WM_GETOBJECT in order to get the accessibility
// object, so take this opportunity to push Chromium into accessible