fix: Welcome screen quick settings executing handler more than once

This commit is contained in:
WerWolv
2025-08-18 20:04:20 +02:00
parent 35a357f1a8
commit 7f5ae41d8a
2 changed files with 3 additions and 4 deletions

View File

@@ -535,7 +535,6 @@ namespace hex::plugin::builtin {
for (auto &[onIcon, offIcon, unlocalizedTooltip, toggleCallback, state] : quickSettings) {
ImGui::PushID(id + 1);
if (ImGuiExt::DimmedIconToggle(onIcon.c_str(), offIcon.c_str(), &state)) {
toggleCallback(state);
ContentRegistry::Settings::write<bool>("hex.builtin.settings.quick_settings", unlocalizedTooltip, state);
}
if (id % 5 > 0)