diff --git a/plugins/builtin/source/content/settings_entries.cpp b/plugins/builtin/source/content/settings_entries.cpp index 3b4704115..7c2b6d02e 100644 --- a/plugins/builtin/source/content/settings_entries.cpp +++ b/plugins/builtin/source/content/settings_entries.cpp @@ -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; } diff --git a/source/window/window.cpp b/source/window/window.cpp index 15d1d5605..3ed5442ac 100644 --- a/source/window/window.cpp +++ b/source/window/window.cpp @@ -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");