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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2018-06-25 14:29:54 +0300
committerbubnikv <bubnikv@gmail.com>2018-06-27 14:57:21 +0300
commit6706c3b71f49ee82c9f027b027d62bb75feb049d (patch)
treeee5766873641449c6f27e2ca83c699576b6cf755 /xs
parente00125d866c23bd68924d1fe4f92af8a05a5de03 (diff)
ConfigWizard: Mark the first variant of each printer as default in the GUI
Diffstat (limited to 'xs')
-rw-r--r--xs/src/slic3r/GUI/ConfigWizard.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xs/src/slic3r/GUI/ConfigWizard.cpp b/xs/src/slic3r/GUI/ConfigWizard.cpp
index f723e7f4b..642c6dce7 100644
--- a/xs/src/slic3r/GUI/ConfigWizard.cpp
+++ b/xs/src/slic3r/GUI/ConfigWizard.cpp
@@ -83,8 +83,11 @@ PrinterPicker::PrinterPicker(wxWindow *parent, const VendorProfile &vendor, cons
const auto model_id = model.id;
+ bool default_variant = true; // Mark the first variant as default in the GUI
for (const auto &variant : model.variants) {
- const auto label = wxString::Format("%s %s %s", variant.name, _(L("mm")), _(L("nozzle")));
+ const auto label = wxString::Format("%s %s %s %s", variant.name, _(L("mm")), _(L("nozzle")),
+ (default_variant ? _(L("(default)")) : wxString()));
+ default_variant = false;
auto *cbox = new Checkbox(panel, label, model_id, variant.name);
const size_t idx = cboxes.size();
cboxes.push_back(cbox);