Do not create file when requested to open a file path that doesn't exists + nit.

This commit is contained in:
Martín Lucas Golini
2025-08-27 01:36:24 -03:00
parent a703b09cc1
commit 130301ca77
4 changed files with 4 additions and 4 deletions

View File

@@ -3163,7 +3163,7 @@ void App::initProjectTreeView( std::string path, bool openClean ) {
if ( FileSystem::fileExists( rpath ) ) {
loadFileFromPath( rpath, false, nullptr, onLoaded );
} else if ( FileSystem::fileWrite( path, "" ) ) {
} else if ( FileSystem::fileCanWrite( path ) ) {
loadFileFromPath( path, false, nullptr, onLoaded );
}