ENH: add studio unsigned msg dialog

JIRA: no-jira

Change-Id: I3a4cd03a58d52a725fc5b29c8da7c6d74a00b227
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2025-01-16 15:44:45 +08:00 committed by lane.wei
parent ace06ed45e
commit d1eb8092ce
1 changed files with 7 additions and 0 deletions

View File

@ -4956,6 +4956,13 @@ void GUI_App::process_network_msg(std::string dev_id, std::string msg)
m_show_error_msgdlg = false;
}
}
else if (msg == "unsigned_studio") {
BOOST_LOG_TRIVIAL(info) << "process_network_msg, unsigned_studio";
MessageDialog msg_dlg(nullptr, _L("Your software is not signed, and some printing functions have been restricted. Please use the officially signed software version."), "", wxAPPLY | wxOK);
m_show_error_msgdlg = true;
auto modal_result = msg_dlg.ShowModal();
m_show_error_msgdlg = false;
}
}
}