mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: falsy transparent shouldn't affect webContents background (#38159)
This commit is contained in:
@@ -226,7 +226,7 @@ void WebContentsPreferences::SetFromDictionary(
|
||||
// preferences don't save a transparency option,
|
||||
// apply any existing transparency setting to background_color_
|
||||
bool transparent;
|
||||
if (web_preferences.Get(options::kTransparent, &transparent)) {
|
||||
if (web_preferences.Get(options::kTransparent, &transparent) && transparent) {
|
||||
background_color_ = SK_ColorTRANSPARENT;
|
||||
}
|
||||
std::string background_color;
|
||||
|
||||
Reference in New Issue
Block a user