Revision: 16394
http://sourceforge.net/p/skim-app/code/16394
Author: hofman
Date: 2026-07-23 22:12:41 +0000 (Thu, 23 Jul 2026)
Log Message:
-----------
disable find buttons and find next/previous actions when search is in progress
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-07-23 16:00:17 UTC (rev 16393)
+++ trunk/SKMainWindowController.m 2026-07-23 22:12:41 UTC (rev 16394)
@@ -2067,6 +2067,7 @@
}
- (void)documentDidBeginDocumentFind:(NSNotification *)note {
+ [[findController navigationButton] setEnabled:NO];
NSArray *results = @[[NSMutableDictionary
dictionaryWithObjectsAndKeys:[NSLocalizedString(@"Searching", @"Message in
search table header") stringByAppendingEllipsis], LABEL_KEY, @(NSNotFound),
SKGroupedSearchResultCountKey, @-1, SKGroupedSearchResultPageIndexKey, nil]];
[self setSearchResults:results];
[self setGroupedSearchResults:results];
@@ -2081,6 +2082,7 @@
}
- (void)documentDidEndDocumentFind:(NSNotification *)note {
+ [[findController navigationButton] setEnabled:YES];
NSString *header = nil;
if ([searchResults count] == 2)
header = NSLocalizedString(@"1 Result", @"Message in search table
header");
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2026-07-23 16:00:17 UTC (rev 16393)
+++ trunk/SKMainWindowController_UI.m 2026-07-23 22:12:41 UTC (rev 16394)
@@ -1960,7 +1960,7 @@
return YES;
case NSFindPanelActionNext:
case NSFindPanelActionPrevious:
- return YES;
+ return [[pdfView document] isFinding] == NO;
case NSFindPanelActionSetFindString:
return [[[self pdfView] currentSelection] hasCharacters];
default:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit