fix: Settings not being saved correctly anymore

This commit is contained in:
WerWolv
2025-01-03 14:07:09 +01:00
parent d8fb3f526a
commit 525ab8d945
2 changed files with 2 additions and 9 deletions

View File

@@ -1002,6 +1002,7 @@ namespace hex::plugin::builtin {
for (const auto &entry : subcategory.entries) {
if (auto keybindingWidget = dynamic_cast<KeybindingWidget*>(entry.widget.get())) {
keybindingWidget->reset();
ContentRegistry::Settings::write<nlohmann::json>(category.unlocalizedName, entry.unlocalizedName, keybindingWidget->store());
}
}
}