Skip to content

Commit

Permalink
UI: Correctly handle unicode paths during save export
Browse files Browse the repository at this point in the history
  • Loading branch information
Exzap committed Dec 16, 2024
1 parent dd0af0a commit adab729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/TitleManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ void TitleManager::OnSaveExport(wxCommandEvent& event)

const auto persistent_id = (uint32)(uintptr_t)m_save_account_list->GetClientData(selection_index);

wxFileDialog path_dialog(this, _("Select a target file to export the save entry"), entry->path.string(), wxEmptyString,
wxFileDialog path_dialog(this, _("Select a target file to export the save entry"), wxHelper::FromPath(entry->path), wxEmptyString,
fmt::format("{}|*.zip", _("Exported save entry (*.zip)")), wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
if (path_dialog.ShowModal() != wxID_OK || path_dialog.GetPath().IsEmpty())
return;
Expand Down

0 comments on commit adab729

Please sign in to comment.