mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 09:32:09 +00:00
Info in ObjectList: Settings should be above the new info items, info items are selectable
This commit is contained in:
@@ -377,13 +377,7 @@ wxDataViewItem ObjectDataViewModel::AddSettingsChild(const wxDataViewItem &paren
|
||||
|
||||
const auto node = new ObjectDataViewModelNode(root, itSettings);
|
||||
|
||||
// In case there are some info items, append after them.
|
||||
size_t i = 0;
|
||||
for (i = 0; i<root->GetChildCount(); ++i)
|
||||
if (root->GetNthChild(i)->GetType() != itInfo)
|
||||
break;
|
||||
|
||||
root->Insert(node, i);
|
||||
root->Insert(node, 0);
|
||||
// notify control
|
||||
const wxDataViewItem child((void*)node);
|
||||
ItemAdded(parent_item, child);
|
||||
|
||||
Reference in New Issue
Block a user