fix: Fixed account switch not being saved if no other settings were changed (#5558)
This commit is contained in:
+4
-1
@@ -1,3 +1,4 @@
|
||||
#include "common/Args.hpp"
|
||||
#include "common/network/NetworkManager.hpp"
|
||||
#include "singletons/Resources.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
@@ -29,10 +30,12 @@ int main(int argc, char **argv)
|
||||
|
||||
chatterino::NetworkManager::init();
|
||||
|
||||
Args args;
|
||||
|
||||
// Ensure settings are initialized before any tests 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, [&]() {
|
||||
auto res = RUN_ALL_TESTS();
|
||||
|
||||
Reference in New Issue
Block a user