mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 13:26:58 +00:00
Guard the don't-remind command parse and init the checker index
This commit is contained in:
@@ -2264,10 +2264,10 @@ int MachineObject::command_dont_remind_next_time(json& mqtt_guard_json)
|
|||||||
mqtt_guard_json["err_index"].empty()) return -1;
|
mqtt_guard_json["err_index"].empty()) return -1;
|
||||||
|
|
||||||
json j;
|
json j;
|
||||||
j["print"]["command"] = mqtt_guard_json["command"].get<std::string>();
|
|
||||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
j["print"]["command"] = mqtt_guard_json["command"].get<std::string>();
|
||||||
int err_index = mqtt_guard_json["err_index"].get<int>();
|
int err_index = mqtt_guard_json["err_index"].get<int>();
|
||||||
|
|
||||||
if (mqtt_guard_json.contains("err_ignored") &&
|
if (mqtt_guard_json.contains("err_ignored") &&
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ struct prePrintInfo
|
|||||||
wxString wiki_url;
|
wxString wiki_url;
|
||||||
wxString link_label; // optional: clickable text appended after msg
|
wxString link_label; // optional: clickable text appended after msg
|
||||||
std::function<void()> link_callback; // optional: internal action for link_label click
|
std::function<void()> link_callback; // optional: internal action for link_label click
|
||||||
int index;
|
int index{0};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool operator==(const prePrintInfo& other) const {
|
bool operator==(const prePrintInfo& other) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user