UI: SplashScreen: Show without activating

This commit is contained in:
Nodir Temirkhodjaev 2024-04-26 16:33:02 +03:00
parent 44669b9a02
commit 429592523e

View File

@ -33,6 +33,7 @@ void startOpacityAnimation(
SplashScreen::SplashScreen() : QSplashScreen()
{
this->setAttribute(Qt::WA_DeleteOnClose);
this->setAttribute(Qt::WA_ShowWithoutActivating);
setupUi();
}
@ -52,8 +53,7 @@ void SplashScreen::closeDelayed()
void SplashScreen::closeFading()
{
startOpacityAnimation(
this, [&] { close(); }, /*backward=*/true);
startOpacityAnimation(this, [&] { close(); }, /*backward=*/true);
}
void SplashScreen::setupUi()