Merge pull request #6829 from electron/fix-thumbar-buttons-vanishing

Save the thumbar buttons when setting them to restore later
This commit is contained in:
Cheng Zhao 2016-08-18 14:34:26 +09:00 committed by GitHub
commit 56d17a1449
4 changed files with 17 additions and 3 deletions

View file

@ -606,7 +606,7 @@ bool Window::SetThumbarButtons(mate::Arguments* args) {
}
auto window = static_cast<NativeWindowViews*>(window_.get());
return window->taskbar_host().SetThumbarButtons(
window->GetAcceleratedWidget(), buttons);
window_->GetAcceleratedWidget(), buttons);
#else
return false;
#endif