ENH: add an error dialog

JIRA: STUDIO-7801

Change-Id: I109c822ec80fcf2e771b4d788c8d2e15f53d4eef
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2024-12-30 14:13:24 +08:00 committed by lane.wei
parent 96d91af481
commit 574f2b92aa
1 changed files with 9 additions and 0 deletions

View File

@ -4939,6 +4939,15 @@ void GUI_App::process_network_msg(std::string dev_id, std::string msg)
m_show_error_msgdlg = false;
}
}
else if (msg == "update_firmware_studio") {
BOOST_LOG_TRIVIAL(info) << "process_network_msg, firmware internal error";
if (!m_show_error_msgdlg) {
MessageDialog msg_dlg(nullptr, _L("Firmware internal error, please try to upgrade firmware version."), "", wxAPPLY | wxOK);
m_show_error_msgdlg = true;
auto modal_result = msg_dlg.ShowModal();
m_show_error_msgdlg = false;
}
}
}
}