diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPQueryConsole.h | 1 | ||||
-rw-r--r-- | Source/SPQueryConsole.m | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPQueryConsole.h b/Source/SPQueryConsole.h index cbe89662..8b1d912d 100644 --- a/Source/SPQueryConsole.h +++ b/Source/SPQueryConsole.h @@ -29,6 +29,7 @@ IBOutlet NSSearchField *consoleSearchField; IBOutlet NSProgressIndicator *progressIndicator; IBOutlet NSButton *includeTimeStampsButton, *saveConsoleButton, *clearConsoleButton; + IBOutlet NSMenuItem *showTimeStampsMenuItem, *showSelectShowStatementsMenuItem; NSFont *consoleFont; NSMutableArray *messagesFullSet, *messagesFilteredSet, *messagesVisibleSet; diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index 7106f49a..43177ae1 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -200,7 +200,8 @@ static SPQueryConsole *sharedQueryConsole = nil; */ - (IBAction)toggleShowTimeStamps:(id)sender { - [[consoleTableView tableColumnWithIdentifier:TABLEVIEW_DATE_COLUMN_IDENTIFIER] setHidden:(![sender intValue])]; + [[consoleTableView tableColumnWithIdentifier:TABLEVIEW_DATE_COLUMN_IDENTIFIER] setHidden:([sender state])]; + [showTimeStampsMenuItem setState:![sender state]]; } /** @@ -208,9 +209,11 @@ static SPQueryConsole *sharedQueryConsole = nil; */ - (IBAction)toggleShowSelectShowStatements:(id)sender { + showSelectStatementsAreDisabled = [sender state]; + // Store the state of the toggle for later quick reference - showSelectStatementsAreDisabled = ![sender intValue]; - + [showSelectShowStatementsMenuItem setState:!showSelectStatementsAreDisabled]; + [self _updateFilterState]; } |