mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Update of the view mode works correctly
This commit is contained in:
		
							parent
							
								
									bd2371cb03
								
							
						
					
					
						commit
						622c613b41
					
				
					 7 changed files with 26 additions and 15 deletions
				
			
		|  | @ -96,6 +96,8 @@ sub new { | |||
| 
 | ||||
|     $self->update_ui_from_settings; | ||||
| 
 | ||||
|     Slic3r::GUI::update_mode(); | ||||
| 
 | ||||
|     return $self; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -449,7 +449,8 @@ sub new { | |||
|                     $self->{"object_info_manifold_warning_icon_show"} = sub { | ||||
|                         if ($self->{object_info_manifold_warning_icon}->IsShown() != $_[0]) { | ||||
|                             Slic3r::GUI::set_show_manifold_warning_icon($_[0]); | ||||
|                             return if (wxTheApp->{app_config}->get("view_mode") eq "simple"); | ||||
|                             my $mode = wxTheApp->{app_config}->get("view_mode"); | ||||
|                             return if ($mode eq "" || $mode eq "simple"); | ||||
|                             $self->{object_info_manifold_warning_icon}->Show($_[0]);  | ||||
|                             $self->Layout | ||||
|                         } | ||||
|  | @ -548,7 +549,7 @@ sub new { | |||
|         $self->SetSizer($sizer); | ||||
| 
 | ||||
|         # Send sizers/buttons to C++ | ||||
|         Slic3r::GUI::set_objects_from_perl( $self, | ||||
|         Slic3r::GUI::set_objects_from_perl( $self->{right_panel}, | ||||
|                                 $frequently_changed_parameters_sizer, | ||||
|                                 $expert_mode_part_sizer, | ||||
|                                 $scrolled_window_sizer, | ||||
|  | @ -1767,7 +1768,7 @@ sub on_extruders_change { | |||
|         my @presets = $choices->[0]->GetStrings; | ||||
|          | ||||
|         # initialize new choice | ||||
|         my $choice = Wx::BitmapComboBox->new($self, -1, "", wxDefaultPosition, wxDefaultSize, [@presets], wxCB_READONLY); | ||||
|         my $choice = Wx::BitmapComboBox->new($self->{right_panel}, -1, "", wxDefaultPosition, wxDefaultSize, [@presets], wxCB_READONLY); | ||||
|         my $extruder_idx = scalar @$choices; | ||||
|         EVT_LEFT_DOWN($choice, sub { $self->filament_color_box_lmouse_down($extruder_idx, @_); } ); | ||||
|         push @$choices, $choice; | ||||
|  |  | |||
|  | @ -245,7 +245,7 @@ sub reload_scene { | |||
|             $self->set_warning_enabled(0); | ||||
|             $self->volumes->update_outside_state($self->{config}, 1); | ||||
|             Slic3r::GUI::_3DScene::reset_warning_texture(); | ||||
|             $self->on_enable_action_buttons->(1) if ($self->on_enable_action_buttons); | ||||
|             $self->on_enable_action_buttons->(scalar @{$self->{model}->objects} > 0) if ($self->on_enable_action_buttons); | ||||
|         } | ||||
|     } else { | ||||
|         $self->set_warning_enabled(0); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka