diff options
author | Vojtech Kral <vojtech@kral.hk> | 2018-06-25 14:29:54 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2018-06-27 11:36:19 +0300 |
commit | 5c89a80ef4b1efb493af1e5ace21360fbfd193d4 (patch) | |
tree | 730f26bda16593ef25f06aaf38314f7c698ebaa3 /xs/src | |
parent | ac829ea0637e2108f4d4d90b5ad2dc650761f1dd (diff) |
ConfigWizard: Mark the first variant of each printer as default in the GUI
Diffstat (limited to 'xs/src')
-rw-r--r-- | xs/src/slic3r/GUI/ConfigWizard.cpp | 5 |
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); |