mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-29 11:41:20 -06:00 
			
		
		
		
	Bugfix: the object parts editor is opened in invalid status until user clicks on a tree list item. #2762
This commit is contained in:
		
							parent
							
								
									ce676a7ca7
								
							
						
					
					
						commit
						901716adc8
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -136,9 +136,13 @@ sub reload_tree { | ||||||
|     } |     } | ||||||
|     $tree->ExpandAll; |     $tree->ExpandAll; | ||||||
|      |      | ||||||
|     # This will trigger the selection_changed() event |  | ||||||
|     Slic3r::GUI->CallAfter(sub { |     Slic3r::GUI->CallAfter(sub { | ||||||
|         $self->{tree}->SelectItem($selectedId); |         $self->{tree}->SelectItem($selectedId); | ||||||
|  |          | ||||||
|  |         # SelectItem() should trigger EVT_TREE_SEL_CHANGED as per wxWidgets docs, | ||||||
|  |         # but in fact it doesn't if the given item is already selected (this happens | ||||||
|  |         # on first load) | ||||||
|  |         $self->selection_changed; | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci