fix: don't add tests to autostart (#6084)

This commit is contained in:
nerix
2025-03-16 13:40:18 +01:00
committed by GitHub
parent e54e28ee39
commit b515553a29
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -78,6 +78,7 @@
- Dev: Mini feature refactor of BaseWindow. (#6074)
- Dev: Removed dead code and some MSVC warnings. (#6024)
- Dev: Added check if WEBP is supported. (#6073)
- Dev: Tests won't add themselves to the autostart on Windows anymore. (#6084)
## 2.5.2
+7
View File
@@ -1,5 +1,6 @@
#include "util/WindowsHelper.hpp"
#include "Application.hpp"
#include "common/Literals.hpp"
#include <QApplication>
@@ -64,6 +65,12 @@ bool isRegisteredForStartup()
void setRegisteredForStartup(bool isRegistered)
{
auto *app = tryGetApp();
if (app && app->isTest())
{
return;
}
QSettings settings(RUN_KEY, QSettings::NativeFormat);
if (isRegistered)