mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Switch from wxComboBox to wxChoice
This commit is contained in:
		
							parent
							
								
									72298877bb
								
							
						
					
					
						commit
						a59b82db06
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -85,7 +85,7 @@ sub new { | |||
|             }; | ||||
|             $fields{$opt_key} = [$x_field, $y_field]; | ||||
|         } elsif ($opt->{type} eq 'select') { | ||||
|             $field = Wx::Choice->new($parent, -1, Wx::wxDefaultPosition, Wx::wxDefaultSize, $opt->{labels} || $opt->{values}); | ||||
|             $field = Wx::ComboBox->new($parent, -1, "", Wx::wxDefaultPosition, Wx::wxDefaultSize, $opt->{labels} || $opt->{values}, &Wx::wxCB_READONLY); | ||||
|             EVT_CHOICE($parent, $field, sub { | ||||
|                 Slic3r::Config->set($opt_key, $opt->{values}[$field->GetSelection]); | ||||
|             }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci