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

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

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot]
2025-04-03 19:23:46 -05:00
committed by GitHub
parent a39951f2c2
commit 36958573c1

View File

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