From 0d4986f2c328bd8a3501e0695cc5a1ec0ab08c52 Mon Sep 17 00:00:00 2001 From: Reppan <72985260+Jepvid@users.noreply.github.com> Date: Wed, 14 Jan 2026 19:50:33 +0100 Subject: [PATCH] Add Clear List button to Mod Menu (#6137) --- soh/soh/Enhancements/mod_menu.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/soh/soh/Enhancements/mod_menu.cpp b/soh/soh/Enhancements/mod_menu.cpp index 37881202e..79f44a85a 100644 --- a/soh/soh/Enhancements/mod_menu.cpp +++ b/soh/soh/Enhancements/mod_menu.cpp @@ -310,6 +310,16 @@ void ModMenuWindow::DrawElement() { UpdateModFiles(false, true); } ImGui::SameLine(); + if (UIWidgets::Button("Clear List", UIWidgets::ButtonOptions().Size(UIWidgets::Sizes::Inline))) { + SohGui::RegisterPopup("Clear List", + "Clear the current mod list and force a rebuild on next boot.\nClick Apply & Close " + "to save this change.", + "Clear", "Cancel", [&]() { + enabledModFiles.clear(); + AfterModChange(); + }); + } + ImGui::SameLine(); if (UIWidgets::Button("Apply & Close", UIWidgets::ButtonOptions().Size(UIWidgets::Sizes::Inline).Color(THEME_COLOR))) { SohGui::RegisterPopup("Apply & Close",