GUI: fix IGFD path reset if it is "/"
This commit is contained in:
parent
43d330831a
commit
b768d46ef1
4
extern/igfd/ImGuiFileDialog.cpp
vendored
4
extern/igfd/ImGuiFileDialog.cpp
vendored
|
@ -608,6 +608,10 @@ namespace IGFD
|
|||
res.ext = pfn.substr(lastPoint + 1);
|
||||
IGFD::Utils::ReplaceString(res.name, "." + res.ext, "");
|
||||
}
|
||||
|
||||
if (res.path.empty()) {
|
||||
res.path=separator;
|
||||
}
|
||||
|
||||
if (!res.isOk)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue