mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix DCHECK on OnThemeChanged()
https://chromium-review.googlesource.com/c/chromium/src/+/2090713
This commit is contained in:
@@ -296,6 +296,7 @@ void MenuBar::RefreshColorCache() {
|
||||
}
|
||||
|
||||
void MenuBar::OnThemeChanged() {
|
||||
views::AccessiblePaneView::OnThemeChanged();
|
||||
RefreshColorCache();
|
||||
UpdateViewColors();
|
||||
}
|
||||
|
||||
@@ -73,6 +73,7 @@ class MenuBar : public views::AccessiblePaneView,
|
||||
bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
|
||||
bool SetPaneFocus(views::View* initial_focus) override;
|
||||
void RemovePaneFocus() override;
|
||||
void OnThemeChanged() override;
|
||||
|
||||
protected:
|
||||
// views::View:
|
||||
@@ -80,7 +81,6 @@ class MenuBar : public views::AccessiblePaneView,
|
||||
|
||||
// views::ButtonListener:
|
||||
void ButtonPressed(views::Button* source, const ui::Event& event) override;
|
||||
void OnThemeChanged() override;
|
||||
|
||||
private:
|
||||
friend class MenuBarColorUpdater;
|
||||
|
||||
Reference in New Issue
Block a user