fix: use HasStyleMask(NSWindowStyleMaskResizable) instead of IsResizable() for enabling/disabling window maximize button (#40994)

This commit is contained in:
Tamás Zahola
2024-01-17 18:23:41 +01:00
committed by GitHub
parent 021592200e
commit f97d8719e6

View File

@@ -916,7 +916,8 @@ bool NativeWindowMac::IsMaximizable() const {
void NativeWindowMac::UpdateZoomButton() {
[[window_ standardWindowButton:NSWindowZoomButton]
setEnabled:IsResizable() && (CanMaximize() || IsFullScreenable())];
setEnabled:HasStyleMask(NSWindowStyleMaskResizable) &&
(CanMaximize() || IsFullScreenable())];
}
void NativeWindowMac::SetFullScreenable(bool fullscreenable) {