Skip to content

Commit c8edb2f

Browse files
committed
av1an: Show amount of finished chunks in temp folder deletion message
1 parent 8a33e30 commit c8edb2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ff-utils-winforms/UI/Tasks/Av1anUi.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ public static void AskDeleteTempFolder (string dir)
337337
return;
338338
}
339339

340-
DialogResult dialog = MessageBox.Show($"Av1an has finished.\nDo you want to delete the temporary folder ({FormatUtils.Bytes(dirSize)}) of this encode?", "Delete av1an temp folder?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
340+
string size = FormatUtils.Bytes(dirSize);
341+
string chunks = $"{IoUtils.GetFileInfosSorted(Path.Combine(dir, "encode"), false, "*.*").Where(x => x.Length >= 1024).Count()} encoded video chunks";
342+
DialogResult dialog = MessageBox.Show($"Av1an has finished.\nDo you want to delete the temporary folder of this encode? It's {size} and contains {chunks}.", "Delete av1an temp folder?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification);
341343

342344
if (dialog == DialogResult.Yes)
343345
IoUtils.TryDeleteIfExists(dir);

0 commit comments

Comments
 (0)