FIX: Crash in Field cache when switch to dual extruder printer

Change-Id: Ida4b5a89642f65863b4b2c774fc74f72da883df6
Jira: none
This commit is contained in:
chunmao.guo 2025-02-15 12:08:09 +08:00 committed by lane.wei
parent ac7d7726d6
commit b2a58802ff
1 changed files with 2 additions and 2 deletions

View File

@ -5274,10 +5274,10 @@ bool Tab::update_current_page_in_background(int& item)
// clear pages from the controlls
// BBS: fix after new layout, clear page in backgroud
if (m_parent->is_active_and_shown_tab((wxPanel*)this))
m_parent->clear_page();
for (auto p : m_pages)
p->clear();
if (m_parent->is_active_and_shown_tab((wxPanel*)this))
m_parent->clear_page();
update_undo_buttons();