FIX: the tab change display

jira: [STUDIO-9748]
Change-Id: I3178a43ec9de091790b1df760c0b029c0f03229e
This commit is contained in:
xin.zhang 2025-02-19 14:06:38 +08:00 committed by lane.wei
parent b10ab77447
commit 96c2cff282
2 changed files with 8 additions and 2 deletions

View File

@ -5006,8 +5006,11 @@ void SendModeSwitchButton::on_left_down(wxMouseEvent &evt)
void SendModeSwitchButton::setSelected(bool selected)
{
is_selected = selected;
Refresh();
if (is_selected != selected)
{
is_selected = selected;
Refresh();
}
}
}} // namespace Slic3r::GUI

View File

@ -680,6 +680,8 @@ void FanControlPopupNew::CreateDuct()
void FanControlPopupNew::UpdateParts(int mode_id)
{
Freeze();
m_sizer_fanControl->Clear(true);
for (const auto& part : m_data.parts) {
@ -698,6 +700,7 @@ void FanControlPopupNew::UpdateParts(int mode_id)
}
m_sizer_fanControl->Layout();
Thaw();
}
void FanControlPopupNew::UpdateTips(int model)