mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 12:52:07 +00:00
FIX: update the display of switch extruder
jira: [STUDIO-9746] [STUDIO-9359] Change-Id: I12ce46c935883e5dba709576b944275af547d3dd (cherry picked from commit 80b5e4f4d637d1daaebdc784ef2d8eb5a8e25193)
This commit is contained in:
@@ -58,13 +58,20 @@ public:
|
||||
bool is_enable {true};
|
||||
|
||||
public:
|
||||
void paintEvent(wxPaintEvent &evt);
|
||||
void render(wxDC &dc);
|
||||
void doRender(wxDC &dc);
|
||||
void on_left_down(wxMouseEvent &evt);
|
||||
void Enable(){is_enable = true;Refresh();};
|
||||
void Disable(){is_enable = false;Refresh();};
|
||||
void Enable();
|
||||
void Disable();
|
||||
bool IsEnabled(){return is_enable;};
|
||||
|
||||
void SetAutoDisableWhenSwitch() { auto_disable_when_switch = true; };
|
||||
|
||||
protected:
|
||||
void paintEvent(wxPaintEvent& evt);
|
||||
void render(wxDC& dc);
|
||||
void doRender(wxDC& dc);
|
||||
void on_left_down(wxMouseEvent& evt);
|
||||
|
||||
private:
|
||||
bool auto_disable_when_switch = false;
|
||||
};
|
||||
|
||||
#endif // !slic3r_GUI_SwitchButton_hpp_
|
||||
|
||||
Reference in New Issue
Block a user