diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index f52967cb3..0bce161db 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -2716,8 +2716,6 @@ static ENUM enum_index_of(char const *key, char const **enum_names, int enum_cou int MachineObject::parse_json(std::string payload, bool key_field_only) { - CNumericLocalesSetter locales_setter; - parse_msg_count++; std::chrono::system_clock::time_point clock_start = std::chrono::system_clock::now(); this->set_online_state(true); @@ -2732,6 +2730,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only) bool restored_json = false; json j; json j_pre = json::parse(payload); + CNumericLocalesSetter locales_setter; if (j_pre.empty()) { return 0; }