From 2a8badec9fad5a16a4d0ef8e927b2f0d9e7fba1d 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 (cherry picked from commit b675a2e4331ef5704d6b99804ac6c0d39979e3bb) --- 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 c6f8969963..bd5ba18122 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -581,12 +581,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();