mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-18 02:35:54 +08:00
FIX:hide advanced options when device incompatible
jira:[STUDIO-9973] Change-Id: I34338e8f87ccc709d4a9f69ce16af17269c91784
This commit is contained in:
parent
efcad28fb2
commit
b675a2e433
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user