Skip to content

Commit

Permalink
Disable search type popup button during searches
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Dec 21, 2023
1 parent f047ab4 commit d49895d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Bit Slicer/ZGDocumentSearchController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -199,6 +200,8 @@ - (void)resumeFromTaskAndMakeSearchFieldFirstResponder:(BOOL)shouldMakeSearchFie

windowController.functionPopUpButton.enabled = YES;

windowController.searchTypePopUpButton.enabled = YES;

windowController.runningApplicationsPopUpButton.enabled = YES;

if (shouldMakeSearchFieldFirstResponder)
Expand Down
1 change: 1 addition & 0 deletions Bit Slicer/ZGDocumentWindowController.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d49895d

Please sign in to comment.