FIX:The sync button shouldn't show for third-part mutli-extruder preset

jira: STUDIO-10779
Change-Id: I56aec127f4314e09bfab9626c6061d8264f0998d
(cherry picked from commit eccf84c4efb43decef1f60efecfe55f4fd62c6d3)
This commit is contained in:
zhimin.zeng 2025-03-11 16:09:22 +08:00 committed by Noisyfox
parent 1cbb0f817d
commit 1f64497e25

View file

@ -500,6 +500,7 @@ struct Sidebar::priv
void Sidebar::priv::layout_printer(bool isBBL, bool isDual)
{
isDual = isDual && isBBL; // It indicates a multi-extruder layout.
// Printer - preset
if (auto sizer = static_cast<wxBoxSizer *>(panel_printer_preset->GetSizer());
sizer == nullptr || isDual != (sizer->GetOrientation() == wxVERTICAL)) {