Revision: 12896 http://sourceforge.net/p/skim-app/code/12896 Author: hofman Date: 2022-05-07 09:43:33 +0000 (Sat, 07 May 2022) Log Message: ----------- no need to passargument that is always true
Modified Paths: -------------- trunk/SKFindController.h trunk/SKFindController.m trunk/SKMainWindowController.m Modified: trunk/SKFindController.h =================================================================== --- trunk/SKFindController.h 2022-05-07 09:27:03 UTC (rev 12895) +++ trunk/SKFindController.h 2022-05-07 09:43:33 UTC (rev 12896) @@ -61,7 +61,7 @@ @property (nonatomic, assign) id <SKFindControllerDelegate> delegate; @property (nonatomic, retain) NSString *findString; -- (void)toggleAboveView:(NSView *)view animate:(BOOL)animate; +- (void)toggleAboveView:(NSView *)view; - (void)findForward:(BOOL)forward; - (void)updateFindPboard; Modified: trunk/SKFindController.m =================================================================== --- trunk/SKFindController.m 2022-05-07 09:27:03 UTC (rev 12895) +++ trunk/SKFindController.m 2022-05-07 09:43:33 UTC (rev 12896) @@ -105,13 +105,11 @@ } } -- (void)toggleAboveView:(NSView *)view animate:(BOOL)animate { +- (void)toggleAboveView:(NSView *)view { if (animating) return; - if ([[NSUserDefaults standardUserDefaults] boolForKey:SKDisableAnimationsKey]) - animate = NO; - + BOOL animate = NO == [[NSUserDefaults standardUserDefaults] boolForKey:SKDisableAnimationsKey]; NSView *findBar = [self view]; if (view == nil) { @@ -226,7 +224,7 @@ } - (IBAction)remove:(id)sender { - [self toggleAboveView:nil animate:YES]; + [self toggleAboveView:nil]; } - (IBAction)toggleCaseInsensitiveFind:(id)sender { Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2022-05-07 09:27:03 UTC (rev 12895) +++ trunk/SKMainWindowController.m 2022-05-07 09:43:33 UTC (rev 12896) @@ -1830,9 +1830,8 @@ findController = [[SKFindController alloc] init]; [findController setDelegate:self]; } - if ([[findController view] window] == nil) { - [findController toggleAboveView:mwcFlags.fullSizeContent ? pdfView : pdfSplitView animate:YES]; - } + if ([[findController view] window] == nil) + [findController toggleAboveView:mwcFlags.fullSizeContent ? pdfView : pdfSplitView]; [[findController findField] selectText:nil]; } 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