impr: Store default setting when setting couldn't be loaded

This commit is contained in:
WerWolv 2024-02-11 11:44:58 +01:00
parent 5d405b4d10
commit 27b5d13733
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ namespace hex::plugin::builtin {
widget->onChanged(); widget->onChanged();
} catch (const std::exception &e) { } catch (const std::exception &e) {
log::error("Failed to load setting [{} / {}]: {}", unlocalizedCategory.get(), unlocalizedName.get(), e.what()); log::error("Failed to load setting [{} / {}]: {}", unlocalizedCategory.get(), unlocalizedName.get(), e.what());
widget->store();
} }
} }
} }