mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-13 06:46:11 -06:00
FIX: do not need the button
jira: [STUDIO-11231] Change-Id: Ia2425864b37d3b158d5c37978e1db04dfc6e63c1 (cherry picked from commit 90ca1c5b4b977fbe98d37718a363c2a31265816e)
This commit is contained in:
parent
b24d347a98
commit
554c192be1
1 changed files with 4 additions and 10 deletions
|
|
@ -223,11 +223,8 @@ bool FanOperate::check_printing_state()
|
|||
if (m_obj && !not_show_fan_speed_warning_dlg && m_obj->is_in_printing()) {
|
||||
MessageDialog msg_wingow(nullptr, _L("Changing fan speed during pringing may affect print quality, please choose carefully."), "", wxICON_WARNING | wxCANCEL | wxOK);
|
||||
msg_wingow.SetButtonLabel(wxID_OK, _L("Change Anyway"));
|
||||
msg_wingow.show_dsa_button();
|
||||
|
||||
bool ok = msg_wingow.ShowModal();
|
||||
if (ok && msg_wingow.get_checkbox_state()) { not_show_fan_speed_warning_dlg = true; }
|
||||
return ok;
|
||||
not_show_fan_speed_warning_dlg = true;
|
||||
return msg_wingow.ShowModal();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -474,11 +471,8 @@ bool FanControlNew::check_printing_state()
|
|||
if (m_obj && !not_show_fan_speed_warning_dlg && m_obj->is_in_printing()) {
|
||||
MessageDialog msg_wingow(nullptr, _L("Changed fan speed during pringing may affect print quality, please choose carefully."), "", wxICON_WARNING | wxCANCEL | wxOK);
|
||||
msg_wingow.SetButtonLabel(wxID_OK, _L("Change Anyway"));
|
||||
msg_wingow.show_dsa_button();
|
||||
|
||||
bool ok = msg_wingow.ShowModal();
|
||||
if (ok && msg_wingow.get_checkbox_state()) { not_show_fan_speed_warning_dlg = true; }
|
||||
return ok;
|
||||
not_show_fan_speed_warning_dlg = true;
|
||||
return msg_wingow.ShowModal();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue