mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-18 00:12:09 +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;
|
||||
|
||||
json j;
|
||||
j["print"]["command"] = mqtt_guard_json["command"].get<std::string>();
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
|
||||
try {
|
||||
j["print"]["command"] = mqtt_guard_json["command"].get<std::string>();
|
||||
int err_index = mqtt_guard_json["err_index"].get<int>();
|
||||
|
||||
if (mqtt_guard_json.contains("err_ignored") &&
|
||||
|
||||
@@ -26,7 +26,7 @@ struct prePrintInfo
|
||||
wxString wiki_url;
|
||||
wxString link_label; // optional: clickable text appended after msg
|
||||
std::function<void()> link_callback; // optional: internal action for link_label click
|
||||
int index;
|
||||
int index{0};
|
||||
|
||||
public:
|
||||
bool operator==(const prePrintInfo& other) const {
|
||||
|
||||
Reference in New Issue
Block a user