FIX: update the hold impl of PrintOptionDialog

jira: [STUDIO-10972]
Change-Id: Ie62d0f4ec7e08087c422ddb38768df99c1f0d5f9
(cherry picked from commit 4f144417030fdd54b05e22c3c6eaad7e66cdeeff)
This commit is contained in:
xin.zhang
2025-04-24 17:31:05 +08:00
committed by Noisyfox
parent c4b30c98e3
commit 11c138043c
3 changed files with 69 additions and 60 deletions

View File

@@ -415,7 +415,7 @@ void ExtruderSwithingStatus::updateBy(MachineObject *obj)
else
{
/*do not display while command sended in a mean while*/
if ((time(nullptr) - m_last_ctrl_time) > HOLD_TIME_SWITCHING)
if ((time(nullptr) - m_last_ctrl_time) > HOLD_TIME_6SEC)
{
updateBy(obj->m_extder_data);
}
@@ -5109,10 +5109,12 @@ void StatusPanel::on_show_print_options(wxCommandEvent& event)
if (print_options_dlg == nullptr) {
print_options_dlg = new PrintOptionsDialog(this);
print_options_dlg->update_machine_obj(obj);
print_options_dlg->update_options(obj);
print_options_dlg->ShowModal();
}
else {
print_options_dlg->update_machine_obj(obj);
print_options_dlg->update_options(obj);
print_options_dlg->ShowModal();
}
}