ENH: enable pop up when slice btn is disabled

1. Enable hover and pop up even if slice btn is disabled. Always
trigger background process schedule

jira: NONE
Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ie9c63c952eeb0f8a7611dd9929e656360609d11a
(cherry picked from commit 9340b4f89e3bd33f4f6d826118e90babe0ca694c)
This commit is contained in:
xun.zhang
2025-01-09 20:43:01 +08:00
committed by Noisyfox
parent f8cd89fdee
commit 74cf5b424a
2 changed files with 50 additions and 30 deletions

View File

@@ -281,11 +281,12 @@ void FilamentGroupPopup::OnRadioBtn(int idx)
{
if (mode_list.at(idx) == FilamentMapMode::fmmAutoForMatch && !m_connected)
return;
m_mode = mode_list.at(idx);
SetFilamentMapMode(m_mode);
UpdateButtonStatus(m_mode);
if (m_mode != mode_list.at(idx)) {
m_mode = mode_list.at(idx);
SetFilamentMapMode(m_mode);
plater_ref->schedule_background_process();
UpdateButtonStatus(m_mode);
}
}
void FilamentGroupPopup::OnTimer(wxTimerEvent &event) { Dismiss(); }