mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: NativeWindowViews::GetRestoredState() can return wrong state when maximized (#46462)
fix: NativeWindowViews::GetRestoredState() returning wrong state Introduced by theaf58931Chromium 131.0.6744.0 roll, specifically https://github.com/electron/electron/pull/43948/commits/9840662#diff-f9d7ef798406626Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user