mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Only change window state when fullscreen is true
This commit is contained in:
@@ -506,7 +506,7 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
|
||||
#else
|
||||
if (IsVisible())
|
||||
window_->SetFullscreen(fullscreen);
|
||||
else
|
||||
else if (fullscreen)
|
||||
window_->native_widget_private()->ShowWithWindowState(
|
||||
ui::SHOW_STATE_FULLSCREEN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user