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