Fix split to objects crash (#9066)

* Fix split to objects crash (SoftFever/OrcaSlicer#9047)

* Avoid unnecessary trigger of `ObjectList::list_manipulation` when object selection changed programmly
This commit is contained in:
Noisyfox
2025-04-03 21:55:44 +08:00
committed by GitHub
parent 8698f75144
commit b4c17d6e97
2 changed files with 8 additions and 1 deletions

View File

@@ -175,6 +175,7 @@ private:
bool m_prevent_list_events = false; // We use this flag to avoid circular event handling Select()
// happens to fire a wxEVT_LIST_ITEM_SELECTED on OSX, whose event handler
// calls this method again and again and again
bool m_prevent_list_manipulation = false;
bool m_prevent_update_filament_in_config = false; // We use this flag to avoid updating of the extruder value in config
// during updating of the extruder count.