Skip to content

Commit

Permalink
Explicitly set the preference window's toolbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
livings124 committed Nov 18, 2020
1 parent 7651bb4 commit 31413df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions macosx/PrefsWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@

@implementation PrefsWindow

- (void)awakeFromNib {
[super awakeFromNib];

if (@available(macOS 11.0, *)) {
self.toolbarStyle = NSWindowToolbarStylePreference;
}
}

- (void) keyDown: (NSEvent *) event
{
if ([event keyCode] == 53) //esc key
Expand Down

0 comments on commit 31413df

Please sign in to comment.