Add clear button to priority window
This commit is contained in:
parent
cd16cf93a3
commit
8c77cb7e95
@ -72,6 +72,11 @@ internal sealed class PriorityWindow : LWindow
|
|||||||
ImGui.BeginDisabled(_questController.ManualPriorityQuests.Count == 0);
|
ImGui.BeginDisabled(_questController.ManualPriorityQuests.Count == 0);
|
||||||
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Upload, "Export to Clibpoard"))
|
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Upload, "Export to Clibpoard"))
|
||||||
ExportToClipboard();
|
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.EndDisabled();
|
||||||
|
|
||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
|
Loading…
Reference in New Issue
Block a user