mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Enable backup for commands (#3168)
Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
parent
4b251c64b6
commit
b2d9b678a2
|
@ -8,6 +8,7 @@
|
|||
- Minor: Allow resub messages to show in `/mentions` tab (#3148)
|
||||
- Minor: Added a setting to hide similar messages by any user. (#2716)
|
||||
- Minor: Duplicate spaces now count towards the display message length. (#3002)
|
||||
- Minor: Commands are now backed up. (#3168)
|
||||
- Bugfix: Restored ability to send duplicate `/me` messages. (#3166)
|
||||
- Bugfix: Notifications for moderators about other moderators deleting messages can now be disabled. (#3121)
|
||||
- Bugfix: Moderation mode and active filters are now preserved when opening a split as a popup. (#3113, #3130)
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue