mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: modify style; optimize ext image loading time
jira: [none] Change-Id: Ia4bd69cc4ae6ae115c22a5c0b6c6a517773ec3f4 (cherry picked from commit 1dfd5cfdfb44b7ad4418633a3e00f5c451856fe7)
This commit is contained in:
@@ -7485,7 +7485,12 @@ std::string DeviceManager::get_printer_diagram_img(std::string type_str)
|
||||
}
|
||||
std::string DeviceManager::get_printer_ams_img(std::string type_str)
|
||||
{
|
||||
return get_value_from_config<std::string>(type_str, "printer_use_ams_image");
|
||||
return get_value_from_config<std::string>(type_str, "printer_use_ams_image"); }
|
||||
|
||||
std::string DeviceManager::get_printer_ext_img(std::string type_str, int pos) {
|
||||
const auto& vec = get_value_from_config<std::vector<std::string>>(type_str, "printer_ext_image");
|
||||
if (vec.size() > pos) { return vec[pos];}
|
||||
return std::string();
|
||||
}
|
||||
|
||||
bool DeviceManager::get_printer_is_enclosed(std::string type_str) {
|
||||
|
||||
Reference in New Issue
Block a user