Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
override tested and funcitonign
Browse files Browse the repository at this point in the history
  • Loading branch information
PilotMatt committed Feb 26, 2024
1 parent a79dcfe commit ca3b071
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/slic3r/Utils/PrintagoServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ bool PrintagoDirector::ProcessPrintagoCommand(const PrintagoCommand& cmd)
std::string printerConfUrl = parameters["printer_conf"];
std::string printConfUrl = parameters["print_conf"];
std::string filamentConfUrl = parameters["filament_conf"];
std::string overridePrintConfUrl = parameters["print_override_conf"];
std::string overridePrintConfUrl = parameters.contains("print_override_conf") ?
parameters["print_override_conf"]:
"";

wxString printagoId = parameters["printago_job"];
if (!printagoId.empty()) {
Expand Down Expand Up @@ -888,7 +890,7 @@ void PrintagoDirector::OverridePrintSettings()
wxFileName printSettingsPath = PBJob::configFiles["print"].GetFullPath();
wxFileName overrideSettingsPath = PBJob::configFiles["print_override"].GetFullPath();
wxFileName printerSettingsPath = PBJob::configFiles["printer"].GetFullPath();
wxString newProfileName = printSettingsPath.GetName() + "-printago-" + PBJob::jobId.Right(6);
wxString newProfileName = printSettingsPath.GetName().ToStdString() + "-printago-" + PBJob::jobId.Right(6);

// Load JSON data from files
std::ifstream printSettingsFile(printSettingsPath.GetFullPath());
Expand Down

0 comments on commit ca3b071

Please sign in to comment.