mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: Shortcut migration not working correctly in some cases
Fixes #2045
This commit is contained in:
@@ -154,6 +154,14 @@ namespace hex {
|
||||
if (!s_settings.isValid())
|
||||
return;
|
||||
|
||||
for (const auto &category : getSettings()) {
|
||||
for (const auto &subCategory : category.subCategories) {
|
||||
for (const auto &entry : subCategory.entries) {
|
||||
(*s_settings)[category.unlocalizedName][entry.unlocalizedName] = entry.widget->store();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const auto &settingsData = *s_settings;
|
||||
|
||||
// During a crash settings can be empty, causing them to be overwritten.
|
||||
|
||||
Reference in New Issue
Block a user