mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 22:16:19 +08:00
ENH:update text in auto refill
jira:[STUDIO-4344] Change-Id: Ieb1f40e03fd4a266b768f8b97e28328858fe63cc
This commit is contained in:
parent
29dca94b32
commit
028326c5b4
@ -1163,6 +1163,7 @@ void MappingContainer::doRender(wxDC& dc)
|
|||||||
AmsReplaceMaterialDialog::AmsReplaceMaterialDialog(wxWindow* parent)
|
AmsReplaceMaterialDialog::AmsReplaceMaterialDialog(wxWindow* parent)
|
||||||
: DPIDialog(parent, wxID_ANY, _L("Auto Refill"), wxDefaultPosition, wxDefaultSize, wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX)
|
: DPIDialog(parent, wxID_ANY, _L("Auto Refill"), wxDefaultPosition, wxDefaultSize, wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
SetDoubleBuffered(true);
|
SetDoubleBuffered(true);
|
||||||
#endif //__WINDOWS__
|
#endif //__WINDOWS__
|
||||||
@ -1331,8 +1332,20 @@ void AmsReplaceMaterialDialog::update_machine_obj(MachineObject* obj)
|
|||||||
m_scrollview_groups->SetMinSize(wxSize(FromDIP(400), height));
|
m_scrollview_groups->SetMinSize(wxSize(FromDIP(400), height));
|
||||||
m_scrollview_groups->SetMaxSize(wxSize(FromDIP(400), height));
|
m_scrollview_groups->SetMaxSize(wxSize(FromDIP(400), height));
|
||||||
} else {
|
} else {
|
||||||
if (label_txt)
|
if (!obj->is_support_filament_backup) {
|
||||||
label_txt->SetLabelText(_L("There are currently no identical spare consumables available, and automatic replenishment is currently not possible. \n(Currently supporting automatic supply of consumables with the same brand, material type, and color)"));
|
label_txt->SetLabel(_L("The printer does not currently support auto refill."));
|
||||||
|
}
|
||||||
|
else if (!obj->ams_auto_switch_filament_flag) {
|
||||||
|
label_txt->SetLabelText(_L("AMS filament backup is not enabled, please enable it in the AMS settings."));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
label_txt->SetLabelText(_L("If there are two identical filaments in AMS, AMS filament backup will be enabled. \n(Currently supporting automatic supply of consumables with the same brand, material type, and color)"));
|
||||||
|
}
|
||||||
|
|
||||||
|
label_txt->SetMinSize(wxSize(FromDIP(380), -1));
|
||||||
|
label_txt->SetMaxSize(wxSize(FromDIP(380), -1));
|
||||||
|
label_txt->Wrap(FromDIP(380));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_scrollview_groups->Layout();
|
m_scrollview_groups->Layout();
|
||||||
|
@ -2374,13 +2374,7 @@ void StatusPanel::update_ams(MachineObject *obj)
|
|||||||
|
|
||||||
m_ams_control->SetAmsModel(ams_mode, ams_mode);
|
m_ams_control->SetAmsModel(ams_mode, ams_mode);
|
||||||
show_ams_group(true);
|
show_ams_group(true);
|
||||||
|
m_ams_control->show_auto_refill(true);
|
||||||
if (!is_support_filament_backup) {
|
|
||||||
m_ams_control->show_auto_refill(false);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
m_ams_control->show_auto_refill(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user