mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Added MessageBoxes for experimenting on OSX
This commit is contained in:
		
							parent
							
								
									ebe5ee3b1f
								
							
						
					
					
						commit
						e2a7bd4a14
					
				
					 3 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -179,6 +179,7 @@ sub _init_tabpanel {
 | 
			
		|||
        my $obj_idx = $event->GetInt;
 | 
			
		||||
 | 
			
		||||
        $self->{plater}->select_object($obj_idx < 0 ? undef: $obj_idx);
 | 
			
		||||
        Wx::MessageBox("Before item_changed_selection", "Slic3r Info", wxOK | wxICON_INFORMATION, $self);
 | 
			
		||||
        $self->{plater}->item_changed_selection($obj_idx);
 | 
			
		||||
    });       
 | 
			
		||||
        
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1852,6 +1852,8 @@ sub on_config_change {
 | 
			
		|||
sub item_changed_selection{
 | 
			
		||||
    my ($self, $obj_idx) = @_;
 | 
			
		||||
 | 
			
		||||
    Wx::MessageBox("Inside item_changed_selection", "Slic3r Info", wxOK | wxICON_INFORMATION, $self);
 | 
			
		||||
 | 
			
		||||
    $self->{canvas}->Refresh;
 | 
			
		||||
    if ($self->{canvas3D}){
 | 
			
		||||
        $self->{canvas3D}->deselect_volumes;
 | 
			
		||||
| 
						 | 
				
			
			@ -2065,6 +2067,7 @@ sub select_object {
 | 
			
		|||
    if (defined $obj_idx) {
 | 
			
		||||
        $self->{objects}->[$obj_idx]->selected(1);
 | 
			
		||||
        # Select current object in the list on c++ side
 | 
			
		||||
        Wx::MessageBox("Before select_current_object", "Slic3r Info", wxOK | wxICON_INFORMATION, $self);
 | 
			
		||||
        Slic3r::GUI::select_current_object($obj_idx);
 | 
			
		||||
    } else {
 | 
			
		||||
        # Unselect all objects in the list on c++ side
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue