Revision: 14949 http://sourceforge.net/p/skim-app/code/14949 Author: hofman Date: 2025-03-07 17:22:30 +0000 (Fri, 07 Mar 2025) Log Message: ----------- only hide title for replacing toolbar on 11.0+
Modified Paths: -------------- trunk/SKMainWindow.m Modified: trunk/SKMainWindow.m =================================================================== --- trunk/SKMainWindow.m 2025-03-07 17:08:28 UTC (rev 14948) +++ trunk/SKMainWindow.m 2025-03-07 17:22:30 UTC (rev 14949) @@ -123,8 +123,10 @@ } - (void)toggleToolbarShown:(id)sender { - if ([[NSUserDefaults standardUserDefaults] integerForKey:SKToolbarPlacementKey] == 2) - [self setTitleVisibility:[[self toolbar] isVisible] ? NSWindowTitleVisible : NSWindowTitleHidden]; + if (@available(macOS 11.0, *)) { + if ([[NSUserDefaults standardUserDefaults] integerForKey:SKToolbarPlacementKey] == 2) + [self setTitleVisibility:[[self toolbar] isVisible] ? NSWindowTitleVisible : NSWindowTitleHidden]; + } [super toggleToolbarShown:sender]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit