FIX: remove duplicate flush_volumes

Change-Id: I86e3cc1ccd997e5c61915052e70c426bead289b1
(cherry picked from commit 1a615790fe0ac39d9ce0776079c34cf7f2c6217b)
This commit is contained in:
zhimin.zeng 2023-01-18 16:56:54 +08:00 committed by Lane.Wei
parent 1fe0d7be8c
commit c0ee8d4f0f
2 changed files with 0 additions and 12 deletions

View file

@ -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())