Explicitly set the preference window's toolbar style

This commit is contained in:
Mitchell Livingston 2020-11-17 22:08:08 -05:00
parent 7651bb4821
commit 31413dffb1
1 changed files with 8 additions and 0 deletions

View File

@ -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