Skip to content

Commit

Permalink
ENH:remove useless prompt information
Browse files Browse the repository at this point in the history
jira:[STUDIO-7884]

Change-Id: Ia3fa5f8c99859d693544d3cb2be47975c3ed7493
  • Loading branch information
walterwongbbl authored and lanewei120 committed Oct 15, 2024
1 parent 072ba83 commit d9a8d68
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/slic3r/GUI/AMSMaterialsSetting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void AMSMaterialsSetting::create_panel_normal(wxWindow* parent)
m_panel_SN->Fit();

wxBoxSizer* m_tip_sizer = new wxBoxSizer(wxHORIZONTAL);
m_tip_readonly = new Label(parent, _L("Setting AMS slot information while printing is not supported"));
m_tip_readonly = new Label(parent, _L(""));
m_tip_readonly->SetForegroundColour(*wxBLACK);
m_tip_readonly->SetBackgroundColour(*wxWHITE);
m_tip_readonly->SetMinSize(wxSize(FromDIP(380), -1));
Expand Down Expand Up @@ -449,15 +449,14 @@ void AMSMaterialsSetting::enable_confirm_button(bool en)
m_tip_readonly->Hide();
}
else {
//m_comboBox_filament->Show(en);
//m_readonly_filament->Show(!en);

if ( !is_virtual_tray() ) {
m_tip_readonly->SetLabelText(_L("Setting AMS slot information while printing is not supported"));
}
else {
m_tip_readonly->SetLabelText(_L("Setting Virtual slot information while printing is not supported"));
if (!obj->is_support_filament_setting_inprinting) {
if (!is_virtual_tray()) {
m_tip_readonly->SetLabelText(_L("Setting AMS slot information while printing is not supported"));
} else {
m_tip_readonly->SetLabelText(_L("Setting Virtual slot information while printing is not supported"));
}
}

m_tip_readonly->Wrap(FromDIP(380));
m_tip_readonly->Show(!en);
}
Expand Down

0 comments on commit d9a8d68

Please sign in to comment.