mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
FIX: only update ams list on selected machine
Change-Id: I7aac78ef1e10c0004651d3686f806d9d15d77d7a
This commit is contained in:
parent
11f74c21d3
commit
808a82300a
2 changed files with 3 additions and 1 deletions
|
@ -1254,6 +1254,8 @@ void Sidebar::load_ams_list(std::map<std::string, Ams *> const &list)
|
|||
for (auto ams : list) {
|
||||
for (auto tray : ams.second->trayList) {
|
||||
if (tray.second->setting_id.empty()) continue;
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__
|
||||
<< boost::format(": ams %1% tray %2% id %3% color %4%") % ams.first % tray.first % tray.second->setting_id % tray.second->color;
|
||||
DynamicPrintConfig ams;
|
||||
ams.set_key_value("filament_id", new ConfigOptionStrings{tray.second->setting_id});
|
||||
ams.set_key_value("filament_colour", new ConfigOptionStrings{"#" + tray.second->color.substr(0, 6)});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue