Use utf8 aware string conversion for wxLaunchDefaultBrowser()

This commit is contained in:
Exzap 2022-09-05 18:40:46 +02:00
parent 0030fa44a5
commit 92639cd517
5 changed files with 11 additions and 9 deletions

View file

@ -4,6 +4,7 @@
#include "gui/helpers/wxCustomEvents.h"
#include "util/helpers/helpers.h"
#include "gui/helpers/wxHelpers.h"
#include "gui/wxHelper.h"
#include "Cafe/Filesystem/WUD/wud.h"
#include <zip.h>
@ -518,7 +519,7 @@ void ChecksumTool::VerifyJsonEntry(const rapidjson::Document& doc)
file.flush();
file.close();
wxLaunchDefaultBrowser(fmt::format("file:{}", path));
wxLaunchDefaultBrowser(wxHelper::FromUtf8(fmt::format("file:{}", path)));
}
else
wxMessageBox(_("Can't open file to write!"), _("Error"), wxOK | wxCENTRE | wxICON_ERROR, this);