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:
parent
7651bb4821
commit
31413dffb1
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue