mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix crash when using old firmware
This commit is contained in:
@@ -21,18 +21,22 @@ namespace Slic3r { namespace GUI {
|
||||
class PrinterPartsDialog : public DPIDialog
|
||||
{
|
||||
protected:
|
||||
wxWindowID ID_NOZZLE_TYPE_CHECKBOX_SINGLE;
|
||||
|
||||
wxWindowID ID_NOZZLE_DIAMETER_CHECKBOX_SINGLE;
|
||||
|
||||
MachineObject* obj{ nullptr };
|
||||
ComboBox* nozzle_type_checkbox;
|
||||
ComboBox* nozzle_diameter_checkbox;
|
||||
std::string last_nozzle_type;
|
||||
std::map<int, std::string> nozzle_type_map;
|
||||
std::map<NozzleType, wxString> nozzle_type_map;
|
||||
std::map<NozzleType, int> nozzle_type_selection_map;
|
||||
std::map<int, float> nozzle_stainless_diameter_map;
|
||||
std::map<int, float> nozzle_hard_diameter_map;
|
||||
public:
|
||||
PrinterPartsDialog(wxWindow* parent);
|
||||
~PrinterPartsDialog();
|
||||
void set_nozzle_type(wxCommandEvent& evt);
|
||||
void set_nozzle_diameter(wxCommandEvent& evt);
|
||||
void set_nozzle_data(wxCommandEvent& evt);
|
||||
void on_dpi_changed(const wxRect& suggested_rect) override;
|
||||
void update_machine_obj(MachineObject* obj_);
|
||||
bool Show(bool show) override;
|
||||
|
||||
Reference in New Issue
Block a user