Skip to content

Commit

Permalink
Fix Queue JSON File not being automatically deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Oct 30, 2022
1 parent 0c069f6 commit 6415c86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NotEnoughAV1Encodes/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2373,6 +2373,11 @@ private async Task MainStartAsync(CancellationToken _cancelToken)
foreach(Queue.QueueElement queueElement in queueItems)
{
ListBoxQueue.Items.Remove(queueElement);
try
{
File.Delete(Path.Combine(Global.AppData, "NEAV1E", "Queue", queueElement.VideoDB.InputFileName + "_" + queueElement.UniqueIdentifier + ".json"));
}
catch { }
}
}

Expand Down

0 comments on commit 6415c86

Please sign in to comment.