mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH:fixed info dialog popping up many times
Change-Id: I2016bc9b722601d153d35ddfbbc4c287bd37f9a1
This commit is contained in:
parent
d6b11a676e
commit
d446db4869
3 changed files with 27 additions and 8 deletions
|
@ -1989,6 +1989,13 @@ struct Plater::priv
|
|||
if (m_select_machine_dlg)
|
||||
m_select_machine_dlg->EndModal(wxID_OK);
|
||||
}
|
||||
|
||||
void enter_prepare_mode()
|
||||
{
|
||||
if (m_select_machine_dlg)
|
||||
m_select_machine_dlg->prepare_mode();
|
||||
}
|
||||
|
||||
void hide_send_to_printer_dlg() { m_send_to_sdcard_dlg->EndModal(wxID_OK); }
|
||||
|
||||
void update_preview_bottom_toolbar();
|
||||
|
@ -10854,8 +10861,15 @@ void Plater::send_calibration_job_finished(wxCommandEvent & evt)
|
|||
|
||||
void Plater::print_job_finished(wxCommandEvent &evt)
|
||||
{
|
||||
p->hide_select_machine_dlg();
|
||||
//start print failed
|
||||
if (Slic3r::GUI::wxGetApp().get_inf_dialog_contect().empty()) {
|
||||
p->hide_select_machine_dlg();
|
||||
}
|
||||
else {
|
||||
p->enter_prepare_mode();
|
||||
}
|
||||
|
||||
|
||||
Slic3r::DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||
if (!dev) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue