mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-01 13:50:48 -07:00
ENH: support proceed action
Jira: [STUDIO-13620] Change-Id: I4ec96fc3adab517196b9725a54241575288c3bbf (cherry picked from commit 240e26147917c32749427f31ebe7623500334ed6)
This commit is contained in:
parent
d8cd5d4ceb
commit
9360733661
4 changed files with 61 additions and 4 deletions
|
|
@ -172,7 +172,9 @@ void DeviceErrorDialog::init_button_list()
|
|||
init_button(PROBLEM_SOLVED_RESUME, _L("Problem Solved and Resume"));
|
||||
init_button(TURN_OFF_FIRE_ALARM, _L("Got it, Turn off the Fire Alarm."));
|
||||
init_button(RETRY_PROBLEM_SOLVED, _L("Retry (problem solved)"));
|
||||
init_button(CANCLE, _L("Cancle"));
|
||||
init_button(STOP_DRYING, _L("Stop Drying"));
|
||||
init_button(PROCEED, _L("Proceed"));
|
||||
init_button(DBL_CHECK_CANCEL, _L("Cancle"));
|
||||
init_button(DBL_CHECK_DONE, _L("Done"));
|
||||
init_button(DBL_CHECK_RETRY, _L("Retry"));
|
||||
|
|
@ -433,10 +435,24 @@ void DeviceErrorDialog::on_button_click(ActionButton btn_id)
|
|||
m_obj->command_ams_control("resume");
|
||||
break;
|
||||
}
|
||||
case DeviceErrorDialog::CANCLE: {
|
||||
break;
|
||||
}
|
||||
case DeviceErrorDialog::STOP_DRYING: {
|
||||
m_obj->command_ams_drying_stop();
|
||||
break;
|
||||
}
|
||||
case DeviceErrorDialog::PROCEED: {
|
||||
if(!m_action_json.is_null()){
|
||||
try{
|
||||
ActionProceed proceed = m_action_json.get<ActionProceed>();
|
||||
m_obj->command_ack_proceed(proceed);
|
||||
} catch(...){
|
||||
BOOST_LOG_TRIVIAL(error) << "DeviceErrorDialog: Action Proceed missing params.";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DeviceErrorDialog::ERROR_BUTTON_COUNT: break;
|
||||
|
||||
case DeviceErrorDialog::DBL_CHECK_CANCEL: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue