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;
|
||||
|
||||
# This will trigger the selection_changed() event
|
||||
Slic3r::GUI->CallAfter(sub {
|
||||
$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…
Reference in a new issue