1
0
mirror of synced 2024-11-25 00:00:27 +01:00

sys: Only restart ImHex when a relevant setting changed

This commit is contained in:
WerWolv 2021-08-27 09:57:03 +02:00
parent d0aec62997
commit c56159da89
2 changed files with 3 additions and 13 deletions

View File

@ -49,6 +49,9 @@ namespace hex::plugin::builtin {
if (ImGui::Combo(name.data(), &selection, scaling, IM_ARRAYSIZE(scaling))) {
setting = selection;
ImHexApi::Common::restartImHex();
return true;
}

View File

@ -123,19 +123,6 @@ namespace hex {
}
}
{
auto scaling = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.scaling");
if (scaling.is_number()) {
static bool firstTime = true;
if (!firstTime) {
ImHexApi::Common::restartImHex();
}
firstTime = false;
}
}
{
auto language = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.language");