FIX: fix the printer drop-down list stuck problem

jira: none
Change-Id: I69927a3dc1c2e2f562cbfc47bc5fcf99d0833cdb
(cherry picked from commit b549be31804343dd2bc40dec38e58317e721fcf0)
This commit is contained in:
zhimin.zeng 2025-02-13 20:05:44 +08:00 committed by Noisyfox
parent 00181ad03e
commit 01977d7d46

View file

@ -7976,8 +7976,8 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt)
//! combo->GetStringSelection().ToUTF8().data());
wxString wx_name = combo->GetString(selection);
if (preset_type == Preset::TYPE_PRINTER) {
wx_name = combo->get_preset_item_name(selection); }
// if (preset_type == Preset::TYPE_PRINTER) {
// wx_name = combo->get_preset_item_name(selection); }
std::string preset_name = wxGetApp().preset_bundle->get_preset_name_by_alias(preset_type,
Preset::remove_suffix_modified(wx_name.ToUTF8().data()));