Skip to content

Commit

Permalink
chore: depreacate style names
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jun 2, 2022
1 parent db03e9e commit 97edd00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/browser/native_window_mac.mm
Expand Up @@ -848,7 +848,7 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
}

bool NativeWindowMac::IsMinimizable() {
return HasStyleMask(NSMiniaturizableWindowMask);
return HasStyleMask(NSWindowStyleMaskMiniaturizable);
}

void NativeWindowMac::SetMaximizable(bool maximizable) {
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/ui/cocoa/electron_ns_window_delegate.mm
Expand Up @@ -235,7 +235,7 @@ - (void)windowDidEndLiveResize:(NSNotification*)notification {

- (void)windowWillEnterFullScreen:(NSNotification*)notification {
// Store resizable mask so it can be restored after exiting fullscreen.
is_resizable_ = shell_->HasStyleMask(NSResizableWindowMask);
is_resizable_ = shell_->HasStyleMask(NSWindowStyleMaskResizable);

shell_->SetFullScreenTransitionState(FullScreenTransitionState::ENTERING);

Expand Down

0 comments on commit 97edd00

Please sign in to comment.