fix: hiddenInset missing maximize button (#27428)
This commit is contained in:
parent
9baca911a1
commit
d69e0d0573
1 changed files with 5 additions and 5 deletions
|
@ -1764,13 +1764,13 @@ void NativeWindowMac::AddContentViewLayers(bool minimizable, bool closable) {
|
||||||
[[window_ standardWindowButton:NSWindowZoomButton] setHidden:YES];
|
[[window_ standardWindowButton:NSWindowZoomButton] setHidden:YES];
|
||||||
[[window_ standardWindowButton:NSWindowMiniaturizeButton] setHidden:YES];
|
[[window_ standardWindowButton:NSWindowMiniaturizeButton] setHidden:YES];
|
||||||
[[window_ standardWindowButton:NSWindowCloseButton] setHidden:YES];
|
[[window_ standardWindowButton:NSWindowCloseButton] setHidden:YES];
|
||||||
}
|
|
||||||
|
|
||||||
// Some third-party macOS utilities check the zoom button's enabled state to
|
// Some third-party macOS utilities check the zoom button's enabled state
|
||||||
// determine whether to show custom UI on hover, so we disable it here to
|
// to determine whether to show custom UI on hover, so we disable it here
|
||||||
// prevent them from doing so in a frameless app window.
|
// to prevent them from doing so in a frameless app window.
|
||||||
SetMaximizable(false);
|
SetMaximizable(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::InternalSetWindowButtonVisibility(bool visible) {
|
void NativeWindowMac::InternalSetWindowButtonVisibility(bool visible) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue