mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: WCO crash on bad titlebarStyle (#34302)
This commit is contained in:
@@ -55,8 +55,8 @@ SkColor WinFrameView::GetReadableFeatureColor(SkColor background_color) {
|
||||
}
|
||||
|
||||
void WinFrameView::InvalidateCaptionButtons() {
|
||||
// Ensure that the caption buttons container exists
|
||||
DCHECK(caption_button_container_);
|
||||
if (!caption_button_container_)
|
||||
return;
|
||||
|
||||
caption_button_container_->InvalidateLayout();
|
||||
caption_button_container_->SchedulePaint();
|
||||
|
||||
Reference in New Issue
Block a user