Skip to content

Commit

Permalink
Fix a regression that cover image was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed May 1, 2024
1 parent 4400220 commit 4e1b105
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/slic3r/GUI/WebGuideDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,13 @@ int GuideFrame::LoadProfileFamily(std::string strVendor, std::string strFilePath

// wxString strCoverPath = wxString::Format("%s\\%s\\%s_cover.png", strFolder, strVendor, std::string(s1.mb_str()));
std::string cover_file = s1 + "_cover.png";
boost::filesystem::path cover_path = boost::filesystem::absolute(vendor_dir / cover_file).make_preferred();
boost::filesystem::path cover_path = boost::filesystem::absolute(boost::filesystem::path(resources_dir()) / "/profiles/" / strVendor / cover_file).make_preferred();
if (!boost::filesystem::exists(cover_path)) {
cover_path =
(boost::filesystem::absolute(boost::filesystem::path(resources_dir()) / "/web/image/printer/") /
cover_file)
.make_preferred();
}
OneModel["cover"] = cover_path.string();

OneModel["nozzle_selected"] = "";
Expand Down

0 comments on commit 4e1b105

Please sign in to comment.