diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index cc74fcdb37..c5a7797fad 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -5365,7 +5365,7 @@ void GUI_App::load_project(wxWindow *parent, wxString& input_file) const input_file.Clear(); wxFileDialog dialog(parent ? parent : GetTopWindow(), _L("Choose one file (3MF):"), - app_config->get_last_dir(), "", + from_u8(app_config->get_last_dir()), "", file_wildcards(FT_PROJECT), wxFD_OPEN | wxFD_FILE_MUST_EXIST); if (dialog.ShowModal() == wxID_OK) @@ -5404,7 +5404,7 @@ void GUI_App::load_gcode(wxWindow* parent, wxString& input_file) const input_file.Clear(); wxFileDialog dialog(parent ? parent : GetTopWindow(), _L("Choose one file (GCODE/3MF):"), - app_config->get_last_dir(), "", + from_u8(app_config->get_last_dir()), "", file_wildcards(FT_GCODE), wxFD_OPEN | wxFD_FILE_MUST_EXIST); if (dialog.ShowModal() == wxID_OK) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 7824b1534f..7431e3f1d3 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -4250,7 +4250,7 @@ void MainFrame::load_config_file() // if (!wxGetApp().check_and_save_current_preset_changes(_L("Loading profile file"), "", false)) // return; wxFileDialog dlg(this, _L("Select profile to load:"), - !m_last_config.IsEmpty() ? get_dir_name(m_last_config) : wxGetApp().app_config->get_last_dir(), + from_u8(!m_last_config.IsEmpty() ? get_dir_name(m_last_config) : wxGetApp().app_config->get_last_dir()), "config.json", _L("Config files (*.json;*.zip;*.orca_printer;*.orca_bundle;*.orca_filament)|*.json;*.zip;*.orca_printer;*.orca_bundle;*.orca_filament"), wxFD_OPEN | wxFD_MULTIPLE | wxFD_FILE_MUST_EXIST); wxArrayString files; if (dlg.ShowModal() != wxID_OK)