build: Updated nativefiledialog library

This commit is contained in:
WerWolv 2022-07-16 13:26:07 +02:00
parent 2e3bb8e555
commit 499b68b7ad
2 changed files with 2 additions and 12 deletions

@ -1 +1 @@
Subproject commit 28ade5a5cc5d17cea8fe4034572cac8fd54eb53f
Subproject commit 33115928184cc3cc1b945a0f94bbc574d137224c

View File

@ -88,17 +88,7 @@ namespace hex::fs {
}
if (result == NFD_OKAY && outPath != nullptr) {
std::fs::path path;
#if defined(OS_LINUX)
// xdg-desktop-portal, which is the file picker backend used on Linux, returns all paths with URI encoding.
// This is a bit ugly and will most likely be fixed sometime in the future but until then, we'll just use
// curl to decode the URI string into a valid file path string
path = Net().decode(outPath);
#else
path = reinterpret_cast<char8_t*>(outPath);
#endif
callback(path);
callback(reinterpret_cast<char8_t*>(outPath));
NFD::FreePath(outPath);
}