mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix ambiguous overload, wxScopedCharBuffer comparison, and wxArrayString ctor
- PhysicalPrinterDialog: disambiguate set_values() call with explicit std::vector<std::string> (wxArrayString now also matches initializer list) - Preferences: use ToStdString() instead of mb_str() for std::string comparison - Plater: use wxString::FromUTF8() for wxArrayString constructor argument
This commit is contained in:
@@ -284,7 +284,7 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox(wxString title, wxS
|
||||
if (combobox->GetSelection() == m_current_language_selected)
|
||||
return;
|
||||
|
||||
if (e.GetString().mb_str() != app_config->get(param)) {
|
||||
if (e.GetString().ToStdString() != app_config->get(param)) {
|
||||
{
|
||||
//check if the project has changed
|
||||
if (wxGetApp().plater()->is_project_dirty()) {
|
||||
|
||||
Reference in New Issue
Block a user