1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

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

View file

@ -24,6 +24,14 @@
@implementation PrefsWindow @implementation PrefsWindow
- (void)awakeFromNib {
[super awakeFromNib];
if (@available(macOS 11.0, *)) {
self.toolbarStyle = NSWindowToolbarStylePreference;
}
}
- (void) keyDown: (NSEvent *) event - (void) keyDown: (NSEvent *) event
{ {
if ([event keyCode] == 53) //esc key if ([event keyCode] == 53) //esc key