1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 20:47:45 +00:00

Fix Watchdog builds failing

This commit is contained in:
Joshua Goins 2022-09-05 17:17:38 -04:00
parent aaa614519e
commit cd2723ebfb
2 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ void LauncherCore::buildRequest(const ProfileSettings& settings, QNetworkRequest
void LauncherCore::launchGame(const ProfileSettings& profile, const LoginAuth& auth) {
#ifdef ENABLE_WATCHDOG
if (info.settings->enableWatchdog) {
if (profile.enableWatchdog) {
watchdog->launchGame(profile, auth);
} else {
beginGameExecutable(profile, auth);
@ -326,7 +326,7 @@ void LauncherCore::readInitialInformation() {
profileSettings.resize(profiles.size());
for (const auto& uuid : profiles) {
ProfileSettings* profile = new ProfileSettings();
auto profile = new ProfileSettings();
profile->uuid = QUuid(uuid);
settings.beginGroup(uuid);

View file

@ -350,7 +350,7 @@ void SettingsWindow::setupGameTab(QFormLayout& layout) {
#ifdef ENABLE_WATCHDOG
enableWatchdog = new QCheckBox("Enable Watchdog (X11 only)");
gameBoxLayout->addWidget(enableWatchdog);
layout.addWidget(enableWatchdog);
connect(enableWatchdog, &QCheckBox::stateChanged, [this](int state) {
getCurrentProfile().enableWatchdog = state;