mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Harden settings system to not crash ImHex when having outdated configs
Fixes #1514
This commit is contained in:
@@ -287,7 +287,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
static bool alwaysShowProviderTabs = false;
|
||||
EventSettingsChanged::subscribe([] {
|
||||
alwaysShowProviderTabs = ContentRegistry::Settings::read("hex.builtin.setting.interface", "hex.builtin.setting.interface.always_show_provider_tabs", false);
|
||||
alwaysShowProviderTabs = ContentRegistry::Settings::read<bool>("hex.builtin.setting.interface", "hex.builtin.setting.interface.always_show_provider_tabs", false);
|
||||
});
|
||||
|
||||
ContentRegistry::Interface::addToolbarItem([] {
|
||||
|
||||
Reference in New Issue
Block a user