mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 00:40:00 +00:00
ISOProperties: Fix encoding errors in window title
It seems to be a regression, but I haven't bisected it.
This commit is contained in:
parent
d95d28bc4d
commit
65d88776db
@ -358,8 +358,8 @@ void InfoPanel::OnRightClickBanner(wxMouseEvent& WXUNUSED(event))
|
|||||||
void InfoPanel::OnSaveBannerImage(wxCommandEvent& WXUNUSED(event))
|
void InfoPanel::OnSaveBannerImage(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxFileDialog dialog(this, _("Save as..."), wxGetHomeDir(),
|
wxFileDialog dialog(this, _("Save as..."), wxGetHomeDir(),
|
||||||
wxString::Format("%s.png", m_game_id->GetValue().c_str()),
|
wxString::Format("%s.png", m_game_id->GetValue()), wxALL_FILES_PATTERN,
|
||||||
wxALL_FILES_PATTERN, wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
|
wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
|
||||||
|
|
||||||
if (dialog.ShowModal() == wxID_OK)
|
if (dialog.ShowModal() == wxID_OK)
|
||||||
{
|
{
|
||||||
@ -387,8 +387,8 @@ void InfoPanel::ChangeBannerDetails(DiscIO::Language language)
|
|||||||
filename = path + ' ';
|
filename = path + ' ';
|
||||||
|
|
||||||
const auto game_id = m_game_list_item.GetGameID();
|
const auto game_id = m_game_list_item.GetGameID();
|
||||||
const auto new_title = wxString::Format("%s%s: %s - %s", filename.c_str(), extension.c_str(),
|
const auto new_title = wxString::Format("%s%s: %s - %s", StrToWxStr(filename),
|
||||||
game_id.c_str(), name.c_str());
|
StrToWxStr(extension), StrToWxStr(game_id), name);
|
||||||
|
|
||||||
EmitTitleChangeEvent(new_title);
|
EmitTitleChangeEvent(new_title);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user