Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/slic3r/GUI/PhysicalPrinterDialog.cpp')
-rw-r--r--src/slic3r/GUI/PhysicalPrinterDialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
index 54701eedd..6d54b2d71 100644
--- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -528,6 +528,12 @@ void PhysicalPrinterDialog::update(bool printer_change)
if (opt && opt->value == htKlipper) {
m_optgroup->hide_field("printhost_apikey");
}
+
+ // hide api key and ca file for MPMDv2
+ if (opt && opt->value == htMPMDv2) {
+ m_optgroup->hide_field("printhost_apikey");
+ m_optgroup->hide_field("printhost_cafile");
+ }
}
else {
m_optgroup->set_value("host_type", int(PrintHostType::htOctoPrint), false);