fix: check for maximized window before unmaximizings (#32438)
This commit is contained in:
parent
2a8d49a059
commit
0c75b3b2ea
2 changed files with 30 additions and 5 deletions
|
@ -581,14 +581,16 @@ void NativeWindowViews::Maximize() {
|
|||
#endif
|
||||
|
||||
void NativeWindowViews::Unmaximize() {
|
||||
if (IsMaximized()) {
|
||||
#if defined(OS_WIN)
|
||||
if (transparent()) {
|
||||
SetBounds(restore_bounds_, false);
|
||||
return;
|
||||
}
|
||||
if (transparent()) {
|
||||
SetBounds(restore_bounds_, false);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
widget()->Restore();
|
||||
widget()->Restore();
|
||||
}
|
||||
}
|
||||
|
||||
bool NativeWindowViews::IsMaximized() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue