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 -1
View File
@@ -1,3 +1,4 @@
#include "common/Args.hpp"
#include "singletons/Resources.hpp"
#include "singletons/Settings.hpp"
@@ -16,10 +17,12 @@ int main(int argc, char **argv)
::benchmark::Initialize(&argc, argv);
Args args;
// Ensure settings are initialized before any benchmarks are run
QTemporaryDir settingsDir;
settingsDir.setAutoRemove(false); // we'll remove it manually
chatterino::Settings settings(settingsDir.path());
chatterino::Settings settings(args, settingsDir.path());
QTimer::singleShot(0, [&]() {
::benchmark::RunSpecifiedBenchmarks();