mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
NEW:popup warning message when has filament in the extrusion
Change-Id: Ice9a3b5e6ae6ef8514213e61d9034ceb4c585093
This commit is contained in:
parent
9f749b304c
commit
33a38393cf
2 changed files with 29 additions and 15 deletions
|
@ -7,11 +7,14 @@
|
|||
#include "BitmapCache.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
|
||||
#include "MsgDialog.hpp"
|
||||
#include "slic3r/Utils/Http.hpp"
|
||||
#include "libslic3r/Thread.hpp"
|
||||
|
||||
#include "RecenterDialog.hpp"
|
||||
#include "ReleaseNote.hpp"
|
||||
|
||||
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
#define TEMP_THRESHOLD_VAL 2
|
||||
|
@ -2227,6 +2230,17 @@ void StatusPanel::on_filament_edit(wxCommandEvent &event)
|
|||
void StatusPanel::on_ams_refresh_rfid(wxCommandEvent &event)
|
||||
{
|
||||
if (obj) {
|
||||
|
||||
if (obj->is_filament_at_extruder()) {
|
||||
MessageDialog msg_dlg(
|
||||
nullptr,
|
||||
_L("Cannot read filament info: the filament is loaded to the tool head,please unload the filament and try again."),
|
||||
wxEmptyString,
|
||||
wxICON_WARNING | wxYES);
|
||||
msg_dlg.ShowModal();
|
||||
return;
|
||||
}
|
||||
|
||||
std::string curr_ams_id = m_ams_control->GetCurentAms();
|
||||
std::string curr_can_id = event.GetString().ToStdString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue