mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 17:12:07 +00:00
FIX: check the return value
jira: [STUDIO-11485] Change-Id: I60f7d571cd93b0e4f26a965f54c19987843c6265 (cherry picked from commit 85378a7e99bca847bbcb51be1eeaa137eb0a06ea)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user