Add Clear List button to Mod Menu (#6137)
This commit is contained in:
@@ -310,6 +310,16 @@ void ModMenuWindow::DrawElement() {
|
|||||||
UpdateModFiles(false, true);
|
UpdateModFiles(false, true);
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
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",
|
if (UIWidgets::Button("Apply & Close",
|
||||||
UIWidgets::ButtonOptions().Size(UIWidgets::Sizes::Inline).Color(THEME_COLOR))) {
|
UIWidgets::ButtonOptions().Size(UIWidgets::Sizes::Inline).Color(THEME_COLOR))) {
|
||||||
SohGui::RegisterPopup("Apply & Close",
|
SohGui::RegisterPopup("Apply & Close",
|
||||||
|
|||||||
Reference in New Issue
Block a user