From: Liza Carvelli Date: Fri, 20 Sep 2024 19:46:27 +0000 (+0200) Subject: Add clear button to priority window X-Git-Tag: v3.6~2 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=8c77cb7e956a22ba486f2cce05bea0def5a030b7;p=Questionable.git Add clear button to priority window --- diff --git a/Questionable/Windows/PriorityWindow.cs b/Questionable/Windows/PriorityWindow.cs index 9165eddf..08bd35e5 100644 --- a/Questionable/Windows/PriorityWindow.cs +++ b/Questionable/Windows/PriorityWindow.cs @@ -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();