chore: remove redundant 10.11 @avilable checks (#31184)
This commit is contained in:
parent
2c10d0fe1b
commit
e07d74cf29
3 changed files with 24 additions and 32 deletions
|
@ -125,16 +125,13 @@
|
|||
range:NSMakeRange(0, [attributed_title length])];
|
||||
}
|
||||
} else if ([font_type isEqualToString:@"monospacedDigit"]) {
|
||||
if (@available(macOS 10.11, *)) {
|
||||
NSDictionary* attributes = @{
|
||||
NSFontAttributeName :
|
||||
[NSFont monospacedDigitSystemFontOfSize:existing_size
|
||||
weight:NSFontWeightRegular]
|
||||
};
|
||||
[attributed_title
|
||||
addAttributes:attributes
|
||||
range:NSMakeRange(0, [attributed_title length])];
|
||||
}
|
||||
NSDictionary* attributes = @{
|
||||
NSFontAttributeName :
|
||||
[NSFont monospacedDigitSystemFontOfSize:existing_size
|
||||
weight:NSFontWeightRegular]
|
||||
};
|
||||
[attributed_title addAttributes:attributes
|
||||
range:NSMakeRange(0, [attributed_title length])];
|
||||
}
|
||||
|
||||
// Set title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue