fix: don't add tests to autostart (#6084)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user