From d69e0d05731a7ef474ead8b0d710c184f5e346cd Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sun, 24 Jan 2021 16:59:06 -0800 Subject: [PATCH] fix: hiddenInset missing maximize button (#27428) --- shell/browser/native_window_mac.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index f81d1108a5e2..3b50a6c64b9c 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -1764,12 +1764,12 @@ void NativeWindowMac::AddContentViewLayers(bool minimizable, bool closable) { [[window_ standardWindowButton:NSWindowZoomButton] setHidden:YES]; [[window_ standardWindowButton:NSWindowMiniaturizeButton] setHidden:YES]; [[window_ standardWindowButton:NSWindowCloseButton] setHidden:YES]; - } - // Some third-party macOS utilities check the zoom button's enabled state to - // determine whether to show custom UI on hover, so we disable it here to - // prevent them from doing so in a frameless app window. - SetMaximizable(false); + // Some third-party macOS utilities check the zoom button's enabled state + // to determine whether to show custom UI on hover, so we disable it here + // to prevent them from doing so in a frameless app window. + SetMaximizable(false); + } } }