File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ extern NSString *SPResetAutoIncrementAfterDeletionOfAllRows;
392392extern NSString * SPFavoriteColorList ;
393393extern NSString * SPDisplayBinaryDataAsHex ;
394394extern NSString * SPMonospacedFontSize ;
395+ extern NSString * SPRuleFilterEditorLastVisibilityChoice ;
395396
396397// Hidden Prefs
397398extern NSString * SPPrintWarningRowLimit ;
Original file line number Diff line number Diff line change 177177NSString *SPFavoriteColorList = @" FavoriteColorList" ;
178178NSString *SPDisplayBinaryDataAsHex = @" DisplayBinaryDataAsHex" ;
179179NSString *SPMonospacedFontSize = @" MonospacedFontSize" ;
180+ NSString *SPRuleFilterEditorLastVisibilityChoice = @" RuleFilterEditorLastVisibilityChoice" ;
180181
181182// Hidden Prefs
182183NSString *SPPrintWarningRowLimit = @" PrintWarningRowLimit" ;
Original file line number Diff line number Diff line change @@ -175,14 +175,14 @@ - (id)init
175175 tableRowsSelectable = YES ;
176176 isFirstChangeInView = YES ;
177177
178- showFilterRuleEditor = NO ;
179-
180178 isFiltered = NO ;
181179 isLimited = NO ;
182180 isInterruptedLoad = NO ;
183181
184182 prefs = [NSUserDefaults standardUserDefaults ];
185183
184+ showFilterRuleEditor = [prefs boolForKey: SPRuleFilterEditorLastVisibilityChoice];
185+
186186 usedQuery = [[NSString alloc ] initWithString: @" " ];
187187
188188 tableLoadTimer = nil ;
@@ -1350,6 +1350,7 @@ - (void)filterTableTask
13501350- (IBAction )toggleRuleEditorVisible:(id )sender
13511351{
13521352 BOOL shouldShow = !showFilterRuleEditor;
1353+ [prefs setBool: shouldShow forKey: SPRuleFilterEditorLastVisibilityChoice];
13531354 [self setRuleEditorVisible: shouldShow animate: YES ];
13541355 // if this was the active filter before, it no longer can be the active filter when it is hidden
13551356 if (activeFilter == SPTableContentFilterSourceRuleFilter && !shouldShow) {
You can’t perform that action at this time.
0 commit comments