mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 18:56:13 +00:00
feat: update error dialog stop-drying to use CtrlAmsStopDrying
Keeps command_ams_drying_stop() fallback for backward compatibility.
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#include "GUI_App.hpp"
|
#include "GUI_App.hpp"
|
||||||
#include "MainFrame.hpp"
|
#include "MainFrame.hpp"
|
||||||
#include "ReleaseNote.hpp"
|
#include "ReleaseNote.hpp"
|
||||||
|
#include "DeviceCore/DevFilaSystem.h"
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI
|
namespace GUI
|
||||||
@@ -449,6 +450,11 @@ void DeviceErrorDialog::on_button_click(ActionButton btn_id)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DeviceErrorDialog::STOP_DRYING: {
|
case DeviceErrorDialog::STOP_DRYING: {
|
||||||
|
// Use the canonical CtrlAmsStopDrying path
|
||||||
|
if (m_obj && m_obj->GetFilaSystem()) {
|
||||||
|
m_obj->GetFilaSystem()->CtrlAmsStopDrying(0);
|
||||||
|
}
|
||||||
|
// Fallback to the old command for backward compatibility
|
||||||
m_obj->command_ams_drying_stop();
|
m_obj->command_ams_drying_stop();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user