fix: paint and flash issues on macOS (#46615)

* fix: paint and flash issues on macOS

* Adhere to paintWhenInitiallyHidden
This commit is contained in:
Shelley Vohr 2025-04-14 16:29:07 +02:00 committed by GitHub
parent 62b5b5f99d
commit 51bffb533e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 57 additions and 6 deletions

View file

@ -47,7 +47,7 @@ BrowserWindow::BrowserWindow(gin::Arguments* args,
// Copy the show setting to webContents, but only if we don't want to paint
// when initially hidden
bool paint_when_initially_hidden = true;
options.Get("paintWhenInitiallyHidden", &paint_when_initially_hidden);
options.Get(options::kPaintWhenInitiallyHidden, &paint_when_initially_hidden);
if (!paint_when_initially_hidden) {
bool show = true;
options.Get(options::kShow, &show);