mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 02:26:29 +03:00
Do not create file when requested to open a file path that doesn't exists + nit.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user