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
+3 -6
View File
@@ -3,9 +3,8 @@
#include "common/Literals.hpp"
#include "controllers/hotkeys/HotkeyController.hpp"
#include "gmock/gmock.h"
#include "mocks/EmptyApplication.hpp"
#include "mocks/BaseApplication.hpp"
#include "singletons/Fonts.hpp"
#include "singletons/Settings.hpp"
#include "singletons/Theme.hpp"
#include "Test.hpp"
#include "widgets/Notebook.hpp"
@@ -18,12 +17,11 @@ using ::testing::Exactly;
namespace {
class MockApplication : mock::EmptyApplication
class MockApplication : public mock::BaseApplication
{
public:
MockApplication()
: settings(this->settingsDir.filePath("settings.json"))
, theme(this->paths_)
: theme(this->paths_)
, fonts(this->settings)
{
}
@@ -42,7 +40,6 @@ public:
return &this->fonts;
}
Settings settings;
Theme theme;
HotkeyController hotkeys;
Fonts fonts;