mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 17:08:42 +03:00
Adapt the device list to your custom model
This commit is contained in:
BIN
resources/icons/my_printer_thumbnail.png
Normal file
BIN
resources/icons/my_printer_thumbnail.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -2182,11 +2182,10 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
|||||||
std::string model_id;
|
std::string model_id;
|
||||||
if (preset != nullptr) {
|
if (preset != nullptr) {
|
||||||
if ((preset->config.opt_string("printer_model").empty()))
|
if ((preset->config.opt_string("printer_model").empty()))
|
||||||
model_id = "X-MAX 3";
|
model_id = "my_printer";
|
||||||
else
|
else
|
||||||
model_id = preset->config.opt_string("printer_model");
|
model_id = preset->config.opt_string("printer_model");
|
||||||
}
|
}
|
||||||
|
|
||||||
preset_data.push_back({wxString::FromUTF8(it->get_full_name(preset_name)).Lower(), wxString::FromUTF8(preset_name),
|
preset_data.push_back({wxString::FromUTF8(it->get_full_name(preset_name)).Lower(), wxString::FromUTF8(preset_name),
|
||||||
wxString::FromUTF8(it->get_full_name(preset_name)), ph_printers.is_selected(it, preset_name),
|
wxString::FromUTF8(it->get_full_name(preset_name)), ph_printers.is_selected(it, preset_name),
|
||||||
model_id});
|
model_id});
|
||||||
|
|||||||
@@ -552,7 +552,7 @@ void PrinterWebView::OnAddButtonClick(wxCommandEvent &event)
|
|||||||
std::string model_id = "X-MAX 3";
|
std::string model_id = "X-MAX 3";
|
||||||
if (preset != nullptr) {
|
if (preset != nullptr) {
|
||||||
if ((preset->config.opt_string("printer_model").empty()))
|
if ((preset->config.opt_string("printer_model").empty()))
|
||||||
model_id = "X-MAX 3";
|
model_id = "my_printer";
|
||||||
else
|
else
|
||||||
model_id = preset->config.opt_string("printer_model");
|
model_id = preset->config.opt_string("printer_model");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user