mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Restore original comment position
This commit is contained in:
@@ -156,6 +156,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||
command_line->AppendSwitchASCII(::switches::kEnableBlinkFeatures,
|
||||
blink_features);
|
||||
|
||||
// The initial visibility state.
|
||||
NativeWindow* window = NativeWindow::FromWebContents(web_contents);
|
||||
|
||||
// Use embedder window for webviews
|
||||
@@ -168,7 +169,6 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||
}
|
||||
}
|
||||
|
||||
// The initial visibility state.
|
||||
if (window) {
|
||||
bool visible = window->IsVisible() && !window->IsMinimized();
|
||||
if (!visible) // Default state is visible.
|
||||
|
||||
Reference in New Issue
Block a user