ADD: fire (and reduce options writings)

This commit is contained in:
Kolyah35
2026-03-19 17:55:22 +03:00
parent e49f58bc89
commit ca2af5edb4
4 changed files with 4 additions and 15 deletions

View File

@@ -168,9 +168,7 @@ void Options::set(OptionId key, const std::string& value) {
if (option) {
option->set(value);
notifyOptionUpdate(key, value);
save();
}
}
@@ -179,9 +177,7 @@ void Options::set(OptionId key, float value) {
if (option) {
option->set(value);
notifyOptionUpdate(key, value);
save();
}
}
@@ -190,9 +186,7 @@ void Options::set(OptionId key, int value) {
if (option) {
option->set(value);
notifyOptionUpdate(key, value);
save();
}
}
@@ -201,9 +195,7 @@ void Options::toggle(OptionId key) {
if (option) {
option->toggle();
notifyOptionUpdate(key, option->get());
save();
}
}