mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH:optimized msg window style
Change-Id: I2acf6b8fe8f058a1aad8b782deb0d43334d3a770
This commit is contained in:
parent
060ba6c70e
commit
fb68d7745f
2 changed files with 14 additions and 9 deletions
|
@ -1623,6 +1623,7 @@ void StatusPanel::update(MachineObject *obj)
|
|||
if (!m_show_mode_changed) {
|
||||
m_show_mode_changed = true;
|
||||
MessageDialog msg_wingow(nullptr, msg, wxEmptyString, wxICON_WARNING | wxOK);
|
||||
msg_wingow.SetSize(wxSize(FromDIP(600), FromDIP(200)));
|
||||
if (msg_wingow.ShowModal() == wxID_OK || msg_wingow.ShowModal() == wxID_CLOSE) {
|
||||
m_show_mode_changed = false;
|
||||
}
|
||||
|
@ -1632,16 +1633,20 @@ void StatusPanel::update(MachineObject *obj)
|
|||
|
||||
//cloud = > lan
|
||||
if (iter_connect_type->second == "cloud" && obj->dev_connection_type == "lan") {
|
||||
wxString txt = _L("Disconnected from printer [%s] due to LAN mode enabled.Please reconnect the printer by inputting Access Code which can be gotten from printer screen.");
|
||||
wxString msg = wxString::Format(txt, obj->dev_name);
|
||||
if (!m_show_mode_changed) {
|
||||
m_show_mode_changed = true;
|
||||
MessageDialog msg_wingow(nullptr, msg, wxEmptyString, wxICON_WARNING | wxOK);
|
||||
if (msg_wingow.ShowModal() == wxID_OK || msg_wingow.ShowModal() == wxID_CLOSE) {
|
||||
m_show_mode_changed = false;
|
||||
|
||||
if (!obj->is_connected()) {
|
||||
wxString txt = _L("Disconnected from printer [%s] due to LAN mode enabled.Please reconnect the printer by inputting Access Code which can be gotten from printer screen.");
|
||||
wxString msg = wxString::Format(txt, obj->dev_name);
|
||||
if (!m_show_mode_changed) {
|
||||
m_show_mode_changed = true;
|
||||
MessageDialog msg_wingow(nullptr, msg, wxEmptyString, wxICON_WARNING | wxOK);
|
||||
msg_wingow.SetSize(wxSize(FromDIP(600), FromDIP(200)));
|
||||
if (msg_wingow.ShowModal() == wxID_OK || msg_wingow.ShowModal() == wxID_CLOSE) {
|
||||
m_show_mode_changed = false;
|
||||
}
|
||||
}
|
||||
m_print_connect_types[obj->dev_id] = obj->dev_connection_type;
|
||||
}
|
||||
m_print_connect_types[obj->dev_id] = obj->dev_connection_type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue