Allow printing prohibited filaments when 'Skip AMS Blacklist Check' is enabled (#7161)

Update DeviceManager.cpp
This commit is contained in:
Philipp 2024-10-22 17:13:34 +02:00 committed by GitHub
parent 9731a17f0f
commit 425d9c97e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();