into_u8 instead of format
This commit is contained in:
David Kocik 2023-01-26 09:43:08 +01:00
parent 3558006a0b
commit 5b0a0897f4

View file

@ -193,7 +193,7 @@ AppUpdateDownloadDialog::AppUpdateDownloadDialog( const Semver& ver_online, boos
btn_ok->SetLabel(_L("Download"));
btn_ok->Bind(wxEVT_BUTTON, ([this, path](wxCommandEvent& e){
boost::system::error_code ec;
std::string input = GUI::format(txtctrl_path->GetValue());
std::string input = GUI::into_u8(txtctrl_path->GetValue());
boost::filesystem::path dir = boost::filesystem::absolute(boost::filesystem::path(input), ec);
if (ec)
dir = boost::filesystem::path(input);