Enable backup for commands (#3168)

Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
pajlada
2021-08-15 14:33:31 +02:00
committed by GitHub
parent 4b251c64b6
commit b2d9b678a2
2 changed files with 3 additions and 0 deletions
@@ -267,6 +267,8 @@ void CommandController::initialize(Settings &, Paths &paths)
auto path = combinePath(paths.settingsDirectory, "commands.json");
this->sm_ = std::make_shared<pajlada::Settings::SettingManager>();
this->sm_->setPath(path.toStdString());
this->sm_->setBackupEnabled(true);
this->sm_->setBackupSlots(9);
// Delayed initialization of the setting storing all commands
this->commandsSetting_.reset(