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:
SoftFever
2026-03-25 11:31:44 +08:00
parent 0af0327d60
commit 7cbd9bfb3c
3 changed files with 3 additions and 3 deletions

View File

@@ -12112,7 +12112,7 @@ void Plater::import_model_id(wxString download_info)
/* load project */
// Orca: If download is a zip file, treat it as if file has been drag and dropped on the plater
if (target_path.extension() == ".zip")
this->load_files(wxArrayString(1, target_path.string()));
this->load_files(wxArrayString(1, wxString::FromUTF8(target_path.string())));
else
this->load_project(target_path.wstring());
/*BBS set project info after load project, project info is reset in load project */