mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-11 02:24:36 +01:00
Prune tasks from the infinite task list
This commit is contained in:
parent
edc38bae5e
commit
5380141d76
2 changed files with 34 additions and 1 deletions
|
|
@ -1564,6 +1564,8 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
if (ImGui.CollapsingHeader($"#{task.Id} - {task.Status} {(subTime - task.StartTime).TotalMilliseconds}ms###task{i}"))
|
||||
{
|
||||
task.IsBeingViewed = true;
|
||||
|
||||
if (ImGui.Button("CANCEL (May not work)"))
|
||||
{
|
||||
try
|
||||
|
|
@ -1589,6 +1591,10 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
ImGui.TextUnformatted(task.Exception.ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
task.IsBeingViewed = false;
|
||||
}
|
||||
|
||||
ImGui.PopStyleColor(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue