From d49895d72b1add38ae801d81787c8533c8c00b6b Mon Sep 17 00:00:00 2001 From: Zorg Date: Thu, 21 Dec 2023 05:45:15 -0800 Subject: [PATCH] Disable search type popup button during searches --- Bit Slicer/ZGDocumentSearchController.m | 3 +++ Bit Slicer/ZGDocumentWindowController.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Bit Slicer/ZGDocumentSearchController.m b/Bit Slicer/ZGDocumentSearchController.m index d238c4c9..0ddd4588 100644 --- a/Bit Slicer/ZGDocumentSearchController.m +++ b/Bit Slicer/ZGDocumentSearchController.m @@ -181,6 +181,7 @@ - (void)prepareTask windowController.runningApplicationsPopUpButton.enabled = NO; windowController.dataTypesPopUpButton.enabled = NO; windowController.functionPopUpButton.enabled = NO; + windowController.searchTypePopUpButton.enabled = NO; } - (void)resumeFromTaskAndMakeSearchFieldFirstResponder:(BOOL)shouldMakeSearchFieldFirstResponder @@ -199,6 +200,8 @@ - (void)resumeFromTaskAndMakeSearchFieldFirstResponder:(BOOL)shouldMakeSearchFie windowController.functionPopUpButton.enabled = YES; + windowController.searchTypePopUpButton.enabled = YES; + windowController.runningApplicationsPopUpButton.enabled = YES; if (shouldMakeSearchFieldFirstResponder) diff --git a/Bit Slicer/ZGDocumentWindowController.h b/Bit Slicer/ZGDocumentWindowController.h index 561a71d8..a60e8739 100644 --- a/Bit Slicer/ZGDocumentWindowController.h +++ b/Bit Slicer/ZGDocumentWindowController.h @@ -71,6 +71,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) IBOutlet NSButton *storeValuesButton; @property (nonatomic) IBOutlet NSSearchField *searchValueTextField; @property (nonatomic) IBOutlet NSPopUpButton *functionPopUpButton; +@property (nonatomic) NSPopUpButton *searchTypePopUpButton; @property (nonatomic, readonly) ZGDocumentTableController *tableController; @property (nonatomic, readonly) ZGVariableController *variableController;