From 578a648e69a430154b272ed29cddf039e91b339a Mon Sep 17 00:00:00 2001 From: David Kocik Date: Mon, 9 Dec 2024 16:20:38 +0100 Subject: [PATCH] SPE-2524: Select printer from Connect with Tools structure --- src/slic3r/GUI/UserAccountUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/UserAccountUtils.cpp b/src/slic3r/GUI/UserAccountUtils.cpp index 8b0b6db1a4..fad0212d9a 100644 --- a/src/slic3r/GUI/UserAccountUtils.cpp +++ b/src/slic3r/GUI/UserAccountUtils.cpp @@ -105,7 +105,7 @@ std::string json_var_to_opt_string(const std::string& json_var) void fill_config_options_from_json_inner(boost::property_tree::ptree& ptree, std::map>& result, const std::map& parameters) { - pt::ptree slots = parse_tree_for_subtree(parse_tree_for_subtree(ptree, "slot"), "slots"); + pt::ptree slots = parse_tree_for_subtree(ptree, "tools"); for (const auto &subtree : slots) { size_t slot_id; try { @@ -232,7 +232,7 @@ void fill_material_from_json(const std::string& json, std::vector& // if not found, find "filament" subtree // find "slot" subtree - pt::ptree slot_subtree = parse_tree_for_subtree(ptree, "slot"); + pt::ptree slot_subtree = parse_tree_for_subtree(ptree, "tools"); if (slot_subtree.empty()) { // if not found, find "filament" subtree pt::ptree filament_subtree = parse_tree_for_subtree(ptree, "filament");