mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-31 11:50:33 -07:00
FIX: check the return value
jira: [STUDIO-11485] Change-Id: I60f7d571cd93b0e4f26a965f54c19987843c6265 (cherry picked from commit 85378a7e99bca847bbcb51be1eeaa137eb0a06ea)
This commit is contained in:
parent
35353fb210
commit
4cd0dc883f
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
msg_wingow.SetButtonLabel(wxID_OK, _L("Change Anyway"));
|
||||
not_show_fan_speed_warning_dlg = true;
|
||||
return msg_wingow.ShowModal();
|
||||
return (msg_wingow.ShowModal() == wxID_OK);
|
||||
}
|
||||
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);
|
||||
msg_wingow.SetButtonLabel(wxID_OK, _L("Change Anyway"));
|
||||
not_show_fan_speed_warning_dlg = true;
|
||||
return msg_wingow.ShowModal();
|
||||
return (msg_wingow.ShowModal() == wxID_OK);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue