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

jira: STUDIO-10779
Change-Id: I56aec127f4314e09bfab9626c6061d8264f0998d
This commit is contained in:
zhimin.zeng 2025-03-11 16:09:22 +08:00 committed by lane.wei
parent f38d8f959f
commit eccf84c4ef
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,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)) {