鏡像自
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Removed code duplication among editions in ResultWindow.
This commit is contained in:
		
							父節點
							
								
									7ffefe6259
								
							
						
					
					
						當前提交
						c8cd05c07d
					
				| @ -440,6 +440,13 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
|     [Dialogs showMessage:msg]; |     [Dialogs showMessage:msg]; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | - (void)outlineViewSelectionDidChange:(NSNotification *)notification | ||||||
|  | { | ||||||
|  |     [self performPySelection:[self getSelectedPaths:NO]]; | ||||||
|  |     [py refreshDetailsWithSelected]; | ||||||
|  |     [[NSNotificationCenter defaultCenter] postNotificationName:DuplicateSelectionChangedNotification object:self]; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| - (void)resultsChanged:(NSNotification *)aNotification | - (void)resultsChanged:(NSNotification *)aNotification | ||||||
| { | { | ||||||
|     [matches reloadData]; |     [matches reloadData]; | ||||||
| @ -448,6 +455,12 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
|     [self refreshStats]; |     [self refreshStats]; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | - (void)resultsMarkingChanged:(NSNotification *)aNotification | ||||||
|  | { | ||||||
|  |     [matches invalidateMarkings]; | ||||||
|  |     [self refreshStats]; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| - (void)resultsUpdated:(NSNotification *)aNotification | - (void)resultsUpdated:(NSNotification *)aNotification | ||||||
| { | { | ||||||
| 	[matches invalidateBuffers]; | 	[matches invalidateBuffers]; | ||||||
|  | |||||||
| @ -285,17 +285,4 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 |  | ||||||
| - (void)outlineViewSelectionDidChange:(NSNotification *)notification |  | ||||||
| { |  | ||||||
|     [self performPySelection:[self getSelectedPaths:NO]]; |  | ||||||
|     [py refreshDetailsWithSelected]; |  | ||||||
|     [[NSNotificationCenter defaultCenter] postNotificationName:DuplicateSelectionChangedNotification object:self]; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| - (void)resultsMarkingChanged:(NSNotification *)aNotification |  | ||||||
| { |  | ||||||
|     [matches invalidateMarkings]; |  | ||||||
|     [self refreshStats]; |  | ||||||
| } |  | ||||||
| @end | @end | ||||||
|  | |||||||
| @ -252,18 +252,4 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 |  | ||||||
| - (void)outlineViewSelectionDidChange:(NSNotification *)notification |  | ||||||
| { |  | ||||||
|     [self performPySelection:[self getSelectedPaths:NO]]; |  | ||||||
|     [py refreshDetailsWithSelected]; |  | ||||||
|     [[NSNotificationCenter defaultCenter] postNotificationName:DuplicateSelectionChangedNotification object:self]; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| - (void)resultsMarkingChanged:(NSNotification *)aNotification |  | ||||||
| { |  | ||||||
|     [matches invalidateMarkings]; |  | ||||||
|     [self refreshStats]; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| @end | @end | ||||||
| @ -241,18 +241,4 @@ http://www.hardcoded.net/licenses/hs_license | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 |  | ||||||
| /* Notifications */ |  | ||||||
| - (void)outlineViewSelectionDidChange:(NSNotification *)notification |  | ||||||
| { |  | ||||||
|     [self performPySelection:[self getSelectedPaths:NO]]; |  | ||||||
|     [py refreshDetailsWithSelected]; |  | ||||||
|     [[NSNotificationCenter defaultCenter] postNotificationName:DuplicateSelectionChangedNotification object:self]; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| - (void)resultsMarkingChanged:(NSNotification *)aNotification |  | ||||||
| { |  | ||||||
|     [matches invalidateMarkings]; |  | ||||||
|     [self refreshStats]; |  | ||||||
| } |  | ||||||
| @end | @end | ||||||
|  | |||||||
		載入中…
	
	
			
			x
			
			
		
	
		新增問題並參考
	
	Block a user