mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:25:53 +08: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
@ -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…
x
Reference in New Issue
Block a user