Set selected work offset when running program.

This commit is contained in:
2023-05-05 11:33:00 +03:00
parent 0d8bff6fd5
commit 4f9aed3996
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ public:
btnRunProgram = new Button(pgm_actions, "Run");
btnRunProgram->set_enabled(false);
btnRunProgram->set_callback([&] {
cnc.run_program(pgm);
cnc.run_program(pgm, "G" + std::to_string(cboOffset->selected_index() + 54));
});
btnRunProgram->set_tooltip("Execute program");