Merge pull request #6433 from electron/fullscreen-button
The fullscreen button should always be hidden for frameless window
This commit is contained in:
commit
70a29bd46a
1 changed files with 3 additions and 0 deletions
|
@ -1098,6 +1098,9 @@ void NativeWindowMac::InstallView() {
|
|||
[view setFrame:[content_view_ bounds]];
|
||||
[content_view_ addSubview:view];
|
||||
|
||||
// The fullscreen button should always be hidden for frameless window.
|
||||
[[window_ standardWindowButton:NSWindowFullScreenButton] setHidden:YES];
|
||||
|
||||
if (title_bar_style_ != NORMAL)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue