mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
Fixed updating of data for LayerEditors selection
This commit is contained in:
parent
1694204687
commit
c9dd5f8786
2 changed files with 25 additions and 19 deletions
|
@ -34,6 +34,8 @@ class LayerRangeEditor : public wxTextCtrl
|
|||
wxString m_valid_value;
|
||||
EditorType m_type;
|
||||
|
||||
std::function<void(EditorType)> m_set_focus;
|
||||
|
||||
public:
|
||||
LayerRangeEditor( wxWindow* parent,
|
||||
const wxString& value = wxEmptyString,
|
||||
|
@ -44,6 +46,7 @@ public:
|
|||
~LayerRangeEditor() {}
|
||||
|
||||
EditorType type() const {return m_type;}
|
||||
void set_focus() const { m_set_focus(m_type);}
|
||||
|
||||
private:
|
||||
coordf_t get_value();
|
||||
|
@ -56,7 +59,7 @@ class ObjectLayers : public OG_Settings
|
|||
ModelObject* m_object {nullptr};
|
||||
|
||||
wxFlexGridSizer* m_grid_sizer;
|
||||
t_layer_height_range m_last_edited_range;
|
||||
t_layer_height_range m_selectable_range;
|
||||
EditorType m_selection_type {etUndef};
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue