ENH:aAdd protection logic for AMS backup

Change-Id: I5ae871aa03cfe706c7c079cd60a4422cae4464fb
This commit is contained in:
tao wang 2025-01-19 16:52:13 +08:00 committed by lane.wei
parent 50f9bdbd91
commit 2b1fdcf327
1 changed files with 4 additions and 0 deletions

View File

@ -928,6 +928,10 @@ void SelectMachineDialog::check_fcous_state(wxWindow* window)
void SelectMachineDialog::popup_filament_backup()
{
if (m_print_status == PrintStatusUnsupportedPrinter) {
return;
}
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
if (!dev) return;
if (dev->get_selected_machine()/* && dev->get_selected_machine()->filam_bak.size() > 0*/) {