mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Don't ask for confirmation (and reset values) when duplicate is set to 'no'. #311
This commit is contained in:
		
							parent
							
								
									c0ec8b5865
								
							
						
					
					
						commit
						9c991d15d1
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -103,11 +103,17 @@ sub new { | |||
| } | ||||
| 
 | ||||
| sub update_duplicate_controls { | ||||
|     # prevent infinite loops when calling ourselves | ||||
|     return if +(caller 1)[3] =~ /::update_duplicate_controls$/; | ||||
|      | ||||
|     my $value = Slic3r::Config->get('duplicate_mode'); | ||||
|     $_->Enable($value eq 'autoarrange') for @{$fields{duplicate}}; | ||||
|     $_->Enable($value eq 'autoarrange') for @{$fields{bed_size}}; | ||||
|     $_->Enable($value eq 'grid') for @{$fields{duplicate_grid}}; | ||||
|     $_->Enable($value ne 'no') for @{$fields{duplicate_distance}}; | ||||
|     Slic3r::Config->set('duplicate', 1) if $value ne 'autoarrange'; | ||||
|     Slic3r::Config->set('duplicate_grid', [1,1]) if $value ne 'grid'; | ||||
|     $_->() for @reload_callbacks;  # apply new values | ||||
| } | ||||
| 
 | ||||
| 1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci