mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: use HasStyleMask(NSWindowStyleMaskResizable) instead of IsResizable() for enabling/disabling window maximize button (#40994)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user