mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-16 06:38:08 +08:00
Fixed an Linux crash after switching between printer technologies
This commit is contained in:
parent
26b95e3c3c
commit
e613eeed48
@ -2843,6 +2843,9 @@ void TabPrinter::update_pages()
|
||||
//for (auto& el : m_pages)
|
||||
// el.get()->Hide();
|
||||
|
||||
//clear all active pages before switching
|
||||
clear_pages();
|
||||
|
||||
// set m_pages to m_pages_(technology before changing)
|
||||
m_printer_technology == ptFFF ? m_pages.swap(m_pages_fff) : m_pages.swap(m_pages_sla);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user