ENH: optimize one message
JIRA: STUDIO-9527 Change-Id: I789e04a1727b16a8de8eac975ef6a3fea5c59d56 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
910bc77712
commit
def9223e6e
|
@ -1831,6 +1831,11 @@ void PresetBundle::set_calibrate_printer(std::string name)
|
|||
std::set<std::string> PresetBundle::get_printer_names_by_printer_type_and_nozzle(const std::string &printer_type, std::string nozzle_diameter_str)
|
||||
{
|
||||
std::set<std::string> printer_names;
|
||||
|
||||
/* unknown or empty printer type */
|
||||
if (printer_type.empty())
|
||||
return printer_names;
|
||||
|
||||
if ("0.0" == nozzle_diameter_str || nozzle_diameter_str.empty()) {
|
||||
nozzle_diameter_str = "0.4";
|
||||
}
|
||||
|
|
|
@ -4891,7 +4891,7 @@ void GUI_App::process_network_msg(std::string dev_id, std::string msg)
|
|||
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);
|
||||
MessageDialog msg_dlg(nullptr, _L("Internal error. Please try upgrading the firmware and Studio version. If the issue persists, contact customer support."), "", wxAPPLY | wxOK);
|
||||
m_show_error_msgdlg = true;
|
||||
auto modal_result = msg_dlg.ShowModal();
|
||||
m_show_error_msgdlg = false;
|
||||
|
|
Loading…
Reference in New Issue