mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Fix opening nonexistent files from CLI.
This commit is contained in:
@@ -3386,8 +3386,8 @@ void App::initProjectTreeView( std::string path, bool openClean ) {
|
||||
|
||||
if ( FileSystem::fileExists( rpath ) ) {
|
||||
loadFileFromPath( rpath, false, nullptr, onLoaded );
|
||||
} else if ( FileSystem::fileCanWrite( path ) ) {
|
||||
loadFileFromPath( path, false, nullptr, onLoaded );
|
||||
} else if ( FileSystem::fileCanWrite( folderPath ) ) {
|
||||
loadFileFromPath( rpath, false, nullptr, onLoaded );
|
||||
}
|
||||
|
||||
// If we opened a new tab and the first tab is simply empty, discard it
|
||||
|
||||
Reference in New Issue
Block a user