mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 06:21:19 +12:00
Use utf8 aware string conversion for wxLaunchDefaultBrowser() (#185)
This commit is contained in:
parent
0030fa44a5
commit
e5d7d5d173
5 changed files with 11 additions and 9 deletions
|
@ -852,7 +852,7 @@ void wxTitleManagerList::OnContextMenuSelected(wxCommandEvent& event)
|
|||
case kContextMenuOpenDirectory:
|
||||
{
|
||||
const auto path = fs::is_directory(entry->path) ? entry->path : entry->path.parent_path();
|
||||
wxLaunchDefaultBrowser(fmt::format("file:{}", _utf8Wrapper(path)));
|
||||
wxLaunchDefaultBrowser(wxHelper::FromUtf8(fmt::format("file:{}", _utf8Wrapper(path))));
|
||||
}
|
||||
break;
|
||||
case kContextMenuDelete:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue