sys: Only restart ImHex when a relevant setting changed
This commit is contained in:
parent
d0aec62997
commit
c56159da89
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user