Fix crash when attempt to start remote live view for H2D

This commit is contained in:
Noisyfox 2025-05-26 09:55:56 +08:00
parent aebd2f5305
commit 057ba55c87
3 changed files with 2 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

View file

@ -6843,6 +6843,8 @@ boost::bimaps::bimap<std::string, std::string> DeviceManager::get_all_model_id_w
}
for (wxString file : m_files) {
if (!file.Lower().ends_with(".json")) continue;
std::string config_file = Slic3r::resources_dir() + "/printers/" + file.ToStdString();
boost::nowide::ifstream json_file(config_file.c_str());