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:
xin.zhang
2025-01-13 14:12:26 +08:00
committed by Noisyfox
parent 622d11cd17
commit f97c9e3e7d
6 changed files with 81 additions and 19 deletions

View File

@@ -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_