mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-21 20:12:16 -07:00
FIX: FanControlPopupNew update the Layout and Refresh
JIRA: [STUDIO-14785] Change-Id: I91c930d0e1b92dd5f2e4d21f3d851e5826307071 (cherry picked from commit 2f25351f330c1c3c6f2bda7a178946b923a4cc2f)
This commit is contained in:
parent
55d8685952
commit
1ea5aa9017
1 changed files with 10 additions and 0 deletions
|
|
@ -897,6 +897,10 @@ void FanControlPopupNew::on_left_down(wxMouseEvent& evt)
|
|||
fan->on_left_down(evt);
|
||||
}
|
||||
|
||||
Layout();
|
||||
Fit();
|
||||
Refresh();
|
||||
|
||||
evt.Skip();
|
||||
}
|
||||
|
||||
|
|
@ -973,6 +977,10 @@ void FanControlPopupNew::on_mode_changed(const wxMouseEvent &event)
|
|||
btn_iter.second->setSelected(false);
|
||||
}
|
||||
}
|
||||
|
||||
Layout();
|
||||
Fit();
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void FanControlPopupNew::on_fan_changed(const wxCommandEvent &event)
|
||||
|
|
@ -1077,6 +1085,8 @@ FanControlNewSwitchPanel::FanControlNewSwitchPanel(wxWindow* parent, const wxStr
|
|||
|
||||
SetBackgroundColour(wxColour(248, 248, 248));
|
||||
Layout();
|
||||
|
||||
wxGetApp().UpdateDarkUIWin(this);
|
||||
}
|
||||
|
||||
void FanControlNewSwitchPanel::SetSwitchOn(bool on)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue