Raise and restore window when loaded file in single-instance.

Added select-single-line command.
This commit is contained in:
Martín Lucas Golini
2024-09-29 12:19:49 -03:00
parent 12e393b96a
commit cf3ca0d82c
7 changed files with 41 additions and 1 deletions

View File

@@ -3560,8 +3560,11 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
loadFileFromPathOrFocus( path, true, nullptr,
getForcePositionFn( initialPosition ) );
} );
if ( !mWindow->hasFocus() )
if ( !mWindow->hasFocus() ) {
if ( mWindow->isMinimized() )
mWindow->restore();
mWindow->raise();
}
}
FileSystem::fileRemove( fi.getFilepath() );
} );