fix: use HasStyleMask(NSWindowStyleMaskResizable)
instead of IsResizable()
for enabling/disabling window maximize button (#40994)
This commit is contained in:
parent
021592200e
commit
f97d8719e6
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue