Explicitly set the preference window's toolbar style
This commit is contained in:
parent
7651bb4821
commit
31413dffb1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue