mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
The fullscreen button should always be hidden for frameless window
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user