Skip to content

Commit ac04b9d

Browse files
Reduce the size of the binary code generated from Config::restoreDefaults()
1 parent 9c27d0f commit ac04b9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Config/Config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ class Config {
6262
void restoreDefaults() noexcept
6363
{
6464
ConfigVariableTypes::forEach([this] <typename ConfigVariable> (std::type_identity<ConfigVariable>) {
65-
this->setVariable<ConfigVariable>(ConfigVariable::kDefaultValue);
65+
this->setVariableWithoutAutoSave<ConfigVariable>(ConfigVariable::kDefaultValue);
6666
});
67+
scheduleAutoSave();
6768
hookContext.gui().updateFromConfig();
6869
}
6970

0 commit comments

Comments
 (0)