fix: NativeWindowViews::GetRestoredState() can return wrong state when maximized (#46450)

fix: NativeWindowViews::GetRestoredState() returning wrong state

Introduced by the af58931 Chromium 131.0.6744.0 roll, specifically
https://github.com/electron/electron/pull/43948/commits/9840662#diff-f9d7ef7

98406626
This commit is contained in:
Charles Kerr
2025-04-03 08:55:04 -05:00
committed by GitHub
parent f48680a983
commit 0ff98810ba

View File

@@ -1839,7 +1839,7 @@ ui::mojom::WindowShowState NativeWindowViews::GetRestoredState() {
return ui::mojom::WindowShowState::kMaximized;
}
#else
return ui::mojom::WindowShowState::kMinimized;
return ui::mojom::WindowShowState::kMaximized;
#endif
}