Guard the don't-remind command parse and init the checker index

This commit is contained in:
SoftFever
2026-07-16 20:09:50 +08:00
parent 56ac4e1281
commit 550ab5d438
2 changed files with 2 additions and 2 deletions

View File

@@ -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") &&

View File

@@ -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 {