mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Some more localization improvmenets.
This commit is contained in:
parent
5757728f2b
commit
b6837112df
6 changed files with 27 additions and 19 deletions
|
@ -404,7 +404,7 @@ ObjectDataViewModelNode::ObjectDataViewModelNode(ObjectDataViewModelNode* parent
|
|||
}
|
||||
else if (type == itInstance) {
|
||||
m_idx = parent->GetChildCount();
|
||||
m_name = wxString::Format(_(L("Instance_%d")), m_idx + 1);
|
||||
m_name = wxString::Format(_(L("Instance %d")), m_idx + 1);
|
||||
|
||||
set_action_icon();
|
||||
}
|
||||
|
@ -466,6 +466,14 @@ void ObjectDataViewModelNode::msw_rescale()
|
|||
update_settings_digest_bitmaps();
|
||||
}
|
||||
|
||||
void ObjectDataViewModelNode::SetIdx(const int& idx)
|
||||
{
|
||||
m_idx = idx;
|
||||
// update name if this node is instance
|
||||
if (m_type == itInstance)
|
||||
m_name = wxString::Format(_(L("Instance %d")), m_idx + 1);
|
||||
}
|
||||
|
||||
// *****************************************************************************
|
||||
// ----------------------------------------------------------------------------
|
||||
// ObjectDataViewModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue