From b675a2e4331ef5704d6b99804ac6c0d39979e3bb Mon Sep 17 00:00:00 2001 From: tao wang Date: Sun, 19 Jan 2025 17:10:38 +0800 Subject: [PATCH] FIX:hide advanced options when device incompatible jira:[STUDIO-9973] Change-Id: I34338e8f87ccc709d4a9f69ce16af17269c91784 --- src/slic3r/GUI/SelectMachine.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 7cba664b2..75c332c41 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -583,12 +583,16 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater) advanced_options_title->Bind(wxEVT_ENTER_WINDOW, [this](auto &e) {SetCursor(wxCURSOR_HAND);}); advanced_options_title->Bind(wxEVT_LEAVE_WINDOW, [this](auto &e) {SetCursor(wxCURSOR_ARROW);}); advanced_options_title->Bind(wxEVT_LEFT_DOWN, [this](auto& e) { - if (m_options_other->IsShown()) { + if (m_print_status == PrintStatusUnsupportedPrinter) { m_options_other->Hide(); - m_advanced_options_icon->SetBitmap(create_scaled_bitmap("advanced_option1", this, 18)); } else { - m_options_other->Show(); - m_advanced_options_icon->SetBitmap(create_scaled_bitmap("advanced_option2", this, 18)); + if (m_options_other->IsShown()) { + m_options_other->Hide(); + m_advanced_options_icon->SetBitmap(create_scaled_bitmap("advanced_option1", this, 18)); + } else { + m_options_other->Show(); + m_advanced_options_icon->SetBitmap(create_scaled_bitmap("advanced_option2", this, 18)); + } } Layout(); Fit();