ENH:Extruder feed/retract popup size optimization

jira:[STUDIO-12217]

Change-Id: I69f55f129408039952524753a67b15869f670214
(cherry picked from commit d3ac9a4b9d746c7a1193fd3aef09da13f61c40d2)
This commit is contained in:
milk
2025-05-16 18:02:08 +08:00
committed by Noisyfox
parent f33c87c002
commit b533e6fe5f
2 changed files with 14 additions and 9 deletions

View File

@@ -3989,13 +3989,17 @@ void StatusPanel::on_axis_ctrl_z_down_10(wxCommandEvent &event)
void StatusPanel::axis_ctrl_e_hint(bool up_down) void StatusPanel::axis_ctrl_e_hint(bool up_down)
{ {
if (ctrl_e_hint_dlg == nullptr) { if (ctrl_e_hint_dlg == nullptr) {
ctrl_e_hint_dlg = new SecondaryCheckDialog(this->GetParent(), wxID_ANY, _L("Warning"), SecondaryCheckDialog::ButtonStyle::CONFIRM_AND_CANCEL, wxDefaultPosition, wxDefaultSize, wxCLOSE_BOX, true); /* ctrl_e_hint_dlg = new SecondaryCheckDialog(this->GetParent(), wxID_ANY, _L("Warning"), SecondaryCheckDialog::ButtonStyle::CONFIRM_AND_CANCEL, wxDefaultPosition,
ctrl_e_hint_dlg->update_text(_L("Please heat the nozzle to above 170°C before loading or unloading filament.")); ctrl_e_hint_dlg->update_text(_L("Please heat the nozzle to above 170°C before loading or unloading filament."));
ctrl_e_hint_dlg->m_show_again_checkbox->Hide(); ctrl_e_hint_dlg->m_show_again_checkbox->Hide();
ctrl_e_hint_dlg->m_button_cancel->Hide(); ctrl_e_hint_dlg->m_button_cancel->Hide();
ctrl_e_hint_dlg->m_staticText_release_note->SetMaxSize(wxSize(FromDIP(360), -1));
ctrl_e_hint_dlg->m_staticText_release_note->SetMinSize(wxSize(FromDIP(360), -1));
ctrl_e_hint_dlg->Fit();*/
ctrl_e_hint_dlg = new MessageDialog(this, _L("Please heat the nozzle to above 170°C before loading or unloading filament."), wxString(_L("Warning")), wxOK | wxCENTER);
} }
ctrl_e_hint_dlg->ShowModal();
ctrl_e_hint_dlg->on_show(); // ctrl_e_hint_dlg->on_show();
} }
void StatusPanel::on_axis_ctrl_e_up_10(wxCommandEvent &event) void StatusPanel::on_axis_ctrl_e_up_10(wxCommandEvent &event)

View File

@@ -603,7 +603,8 @@ protected:
SecondaryCheckDialog* m_print_error_dlg_no_action = nullptr; SecondaryCheckDialog* m_print_error_dlg_no_action = nullptr;
SecondaryCheckDialog* abort_dlg = nullptr; SecondaryCheckDialog* abort_dlg = nullptr;
SecondaryCheckDialog* con_load_dlg = nullptr; SecondaryCheckDialog* con_load_dlg = nullptr;
SecondaryCheckDialog* ctrl_e_hint_dlg = nullptr; MessageDialog * ctrl_e_hint_dlg = nullptr;
SecondaryCheckDialog* sdcard_hint_dlg = nullptr; SecondaryCheckDialog* sdcard_hint_dlg = nullptr;
FanControlPopupNew* m_fan_control_popup{nullptr}; FanControlPopupNew* m_fan_control_popup{nullptr};