mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-18 01:42:48 +00:00
Fix non-ASCII path corruption on Windows using from_path() helper (#13036)
This commit is contained in:
@@ -404,7 +404,7 @@ WipingDialog::WipingDialog(wxWindow* parent, const int max_flush_volume) :
|
||||
main_sizer->Add(m_webview, 1, wxEXPAND);
|
||||
|
||||
fs::path filepath = fs::path(resources_dir()) / "web/flush/WipingDialog.html";
|
||||
wxString filepath_str = wxString::FromUTF8(filepath.string());
|
||||
wxString filepath_str = from_path(filepath);
|
||||
wxFileName fn(filepath_str);
|
||||
if(fn.FileExists()) {
|
||||
wxString url = wxFileSystem::FileNameToURL(fn);
|
||||
|
||||
Reference in New Issue
Block a user