mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: remove duplicate flush_volumes
Change-Id: I86e3cc1ccd997e5c61915052e70c426bead289b1 (cherry picked from commit 1a615790fe0ac39d9ce0776079c34cf7f2c6217b)
This commit is contained in:
@@ -483,8 +483,6 @@ std::string AppConfig::load()
|
||||
m_filament_presets = iter.value().get<std::vector<std::string>>();
|
||||
} else if (iter.key() == "filament_colors") {
|
||||
m_filament_colors = iter.value().get<std::vector<std::string>>();
|
||||
} else if (iter.key() == "flushing_volumes") {
|
||||
m_flush_volumes_matrix = iter.value().get<std::vector<float>>();
|
||||
}
|
||||
else {
|
||||
if (iter.value().is_string())
|
||||
@@ -577,10 +575,6 @@ void AppConfig::save()
|
||||
j["app"]["filament_colors"].push_back(filament_color);
|
||||
}
|
||||
|
||||
for (double flushing_volume : m_flush_volumes_matrix) {
|
||||
j["app"]["flushing_volumes"].push_back(flushing_volume);
|
||||
}
|
||||
|
||||
// Write the other categories.
|
||||
for (const auto& category : m_storage) {
|
||||
if (category.first.empty())
|
||||
|
||||
Reference in New Issue
Block a user