fix: Fixed account switch not being saved if no other settings were changed (#5558)

This commit is contained in:
pajlada
2024-08-24 15:02:08 +02:00
committed by GitHub
parent aa048b3793
commit 9f588b7406
17 changed files with 69 additions and 73 deletions
+4 -2
View File
@@ -1,5 +1,6 @@
#pragma once
#include "common/Args.hpp"
#include "mocks/DisabledStreamerMode.hpp"
#include "mocks/EmptyApplication.hpp"
#include "providers/bttv/BttvLiveUpdates.hpp"
@@ -16,13 +17,13 @@ class BaseApplication : public EmptyApplication
{
public:
BaseApplication()
: settings(this->settingsDir.filePath("settings.json"))
: settings(this->args, this->settingsDir.path())
{
}
explicit BaseApplication(const QString &settingsData)
: EmptyApplication(settingsData)
, settings(this->settingsDir.filePath("settings.json"))
, settings(this->args, this->settingsDir.path())
{
}
@@ -41,6 +42,7 @@ public:
return nullptr;
}
Args args;
Settings settings;
DisabledStreamerMode streamerMode;
};