FIX: do not need the button

jira: [STUDIO-11231]
Change-Id: Ia2425864b37d3b158d5c37978e1db04dfc6e63c1
(cherry picked from commit 90ca1c5b4b977fbe98d37718a363c2a31265816e)
This commit is contained in:
xin.zhang 2025-04-09 17:57:16 +08:00 committed by Noisyfox
parent b24d347a98
commit 554c192be1

View file

@ -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;
}