Allow printing prohibited filaments when 'Skip AMS Blacklist Check' is enabled (#7161)
Update DeviceManager.cpp
This commit is contained in:
parent
9731a17f0f
commit
425d9c97e4
1 changed files with 9 additions and 1 deletions
|
@ -5857,7 +5857,15 @@ void DeviceManager::check_filaments_in_blacklist(std::string tag_vendor, std::st
|
|||
{
|
||||
vendor = prohibited_filament["vendor"].get<std::string>();
|
||||
type = prohibited_filament["type"].get<std::string>();
|
||||
action = prohibited_filament["action"].get<std::string>();
|
||||
|
||||
if (GUI::wxGetApp().app_config->get("skip_ams_blacklist_check") == "true") {
|
||||
|
||||
action = "warning";
|
||||
}
|
||||
else {
|
||||
|
||||
action = prohibited_filament["action"].get<std::string>();
|
||||
}
|
||||
description = prohibited_filament["description"].get<std::string>();
|
||||
|
||||
description = blacklist_prompt[description].ToUTF8().data();
|
||||
|
|
Loading…
Reference in a new issue