FIX: check the return value
jira: [STUDIO-11485] Change-Id: I60f7d571cd93b0e4f26a965f54c19987843c6265
This commit is contained in:
parent
6e9f2ecb5b
commit
85378a7e99
|
@ -224,7 +224,7 @@ bool FanOperate::check_printing_state()
|
||||||
MessageDialog msg_wingow(nullptr, _L("Changing fan speed during pringing may affect print quality, please choose carefully."), "", wxICON_WARNING | wxCANCEL | wxOK);
|
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.SetButtonLabel(wxID_OK, _L("Change Anyway"));
|
||||||
not_show_fan_speed_warning_dlg = true;
|
not_show_fan_speed_warning_dlg = true;
|
||||||
return msg_wingow.ShowModal();
|
return (msg_wingow.ShowModal() == wxID_OK);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -472,7 +472,7 @@ bool FanControlNew::check_printing_state()
|
||||||
MessageDialog msg_wingow(nullptr, _L("Changed fan speed during pringing may affect print quality, please choose carefully."), "", wxICON_WARNING | wxCANCEL | wxOK);
|
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.SetButtonLabel(wxID_OK, _L("Change Anyway"));
|
||||||
not_show_fan_speed_warning_dlg = true;
|
not_show_fan_speed_warning_dlg = true;
|
||||||
return msg_wingow.ShowModal();
|
return (msg_wingow.ShowModal() == wxID_OK);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue