mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-26 06:53:13 +08:00
name instead of model
This commit is contained in:
parent
9aea5bc054
commit
63573a923c
@ -285,7 +285,7 @@ bool UserAccount::on_connect_uiid_map_success(const std::string& data, AppConfig
|
|||||||
const Preset* printer_preset = UserAccountUtils::find_preset_by_nozzle_and_options(wxGetApp().preset_bundle->printers, *printer_model, config_options_to_match);
|
const Preset* printer_preset = UserAccountUtils::find_preset_by_nozzle_and_options(wxGetApp().preset_bundle->printers, *printer_model, config_options_to_match);
|
||||||
if (printer_preset) {
|
if (printer_preset) {
|
||||||
// Preset can have repo prefix
|
// Preset can have repo prefix
|
||||||
std::string trimmed_name = printer_preset->config.opt_string("printer_model");
|
std::string trimmed_name = printer_preset->name;
|
||||||
const PresetWithVendorProfile& printer_with_vendor = wxGetApp().preset_bundle->printers.get_preset_with_vendor_profile(*printer_preset);
|
const PresetWithVendorProfile& printer_with_vendor = wxGetApp().preset_bundle->printers.get_preset_with_vendor_profile(*printer_preset);
|
||||||
trimmed_name = printer_preset->trim_vendor_repo_prefix(trimmed_name, printer_with_vendor.vendor);
|
trimmed_name = printer_preset->trim_vendor_repo_prefix(trimmed_name, printer_with_vendor.vendor);
|
||||||
m_printer_uuid_map[*printer_uuid] = trimmed_name;
|
m_printer_uuid_map[*printer_uuid] = trimmed_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user