fix: macOS maximize button shouldn't be disabled just because the window is non-fullscreenable (#40705)
* fix: macOS maximize button shouldn't be disabled just because the window is non-fullscreenable * add test * fix test by enabling maximize button if `resizable && (maximizable || fullscreenable)` instead of `(resizable && maximizable) && fullscreenable`
This commit is contained in:
parent
22970f573b
commit
cc1b64e01c
3 changed files with 24 additions and 3 deletions
|
@ -235,6 +235,8 @@ class NativeWindowMac : public NativeWindow,
|
|||
void InternalSetParentWindow(NativeWindow* parent, bool attach);
|
||||
void SetForwardMouseMessages(bool forward);
|
||||
|
||||
void UpdateZoomButton();
|
||||
|
||||
ElectronNSWindow* window_; // Weak ref, managed by widget_.
|
||||
|
||||
ElectronNSWindowDelegate* __strong window_delegate_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue