mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix of
Opening saved project removes Print Host settings #3655 Octoprint Settings when Opening a .3MF file #3244 When loading a configuration file (from AMF, 3MF, .ini or .gcode), and if the host settings ("print_host", "printhost_apikey", "printhost_cafile") in the configuration file is empty, then the config is considered to be anonymized, and these anonymized keys are loaded from the referenced "derived from" profile, if it exists in user's PrusaSlicer configuration directory. We are aware that this is a patch work and a better long term solution is to separate physical printer settings from logical printer settings, but this is a good enough solution for PrusaSlicer 2.2.0 release.
This commit is contained in:
parent
b5e61982a6
commit
25d6818fc7
2 changed files with 56 additions and 9 deletions
|
@ -686,6 +686,7 @@ public:
|
|||
ConfigOption* clone() const override { return new ConfigOptionString(*this); }
|
||||
ConfigOptionString& operator=(const ConfigOption *opt) { this->set(opt); return *this; }
|
||||
bool operator==(const ConfigOptionString &rhs) const { return this->value == rhs.value; }
|
||||
bool empty() const { return this->value.empty(); }
|
||||
|
||||
std::string serialize() const override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue