2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:47:43 +00:00

Add editor portion of rendering flow

This commit is contained in:
Jack Andersen
2016-01-04 13:58:38 -10:00
parent 06eadd587e
commit 6e3614ec28
9 changed files with 71 additions and 52 deletions

View File

@@ -289,6 +289,16 @@ void FileBrowser::okActivated(bool viaButton)
{
if (!viaButton && !err && S_ISDIR(theStat.st_mode))
{
if (m_type == Type::OpenHECLProject)
{
HECL::ProjectRootPath projRoot = HECL::SearchForProject(path);
if (projRoot)
{
m_returnFunc(true, projRoot.getAbsolutePath());
close();
return;
}
}
navigateToPath(path);
return;
}