mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: [STUDIO-2183] presets/filaments unorderd in BambuStudio.conf
Change-Id: I3a286c356cc23f970462e6f24d99b4b038e321e7
This commit is contained in:
parent
881e25e2a2
commit
d0f2f0b28d
2 changed files with 7 additions and 4 deletions
|
@ -462,8 +462,11 @@ std::string AppConfig::load()
|
|||
for(auto& element: iter.value()) {
|
||||
if (idx == 0)
|
||||
m_storage[it.key()]["filament"] = element;
|
||||
else
|
||||
m_storage[it.key()]["filament_" + std::to_string(idx)] = element;
|
||||
else {
|
||||
auto n = std::to_string(idx);
|
||||
if (n.length() == 1) n = "0" + n;
|
||||
m_storage[it.key()]["filament_" + n] = element;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue