Add clear button to priority window

This commit is contained in:
Liza 2024-09-20 21:46:27 +02:00
parent cd16cf93a3
commit 8c77cb7e95
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -72,6 +72,11 @@ internal sealed class PriorityWindow : LWindow
ImGui.BeginDisabled(_questController.ManualPriorityQuests.Count == 0);
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Upload, "Export to Clibpoard"))
ExportToClipboard();
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Check, "Remove finished Quests"))
_questController.ManualPriorityQuests.RemoveAll(q => _questFunctions.IsQuestComplete(q.Id));
ImGui.SameLine();
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Trash, "Clear"))
_questController.ManualPriorityQuests.Clear();
ImGui.EndDisabled();
ImGui.Spacing();