mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Fix Mojave-style tabs not triggering in fullscreen
This commit is contained in:
@@ -165,7 +165,7 @@ enum {
|
||||
oldTabBarStyle = [[view tabBarControl] styleName];
|
||||
|
||||
NSString *style =
|
||||
shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Unified";
|
||||
shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
|
||||
[[view tabBarControl] setStyleNamed:style];
|
||||
|
||||
// add text view
|
||||
|
||||
@@ -1751,12 +1751,12 @@
|
||||
|
||||
+ (NSString *)tabBarStyleForUnified
|
||||
{
|
||||
return shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Unified";
|
||||
return shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
|
||||
}
|
||||
|
||||
+ (NSString *)tabBarStyleForMetal
|
||||
{
|
||||
return shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Metal";
|
||||
return shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Metal";
|
||||
}
|
||||
|
||||
@end // MMWindowController (Private)
|
||||
|
||||
Reference in New Issue
Block a user