Load files directly into batch window, even if dropped into main window

This commit is contained in:
N00MKRAD
2020-12-03 22:21:44 +01:00
parent 8c8731b99b
commit 8f77f05098
2 changed files with 26 additions and 10 deletions

View File

@@ -111,7 +111,12 @@ namespace Flowframes.Forms
private async void taskList_DragDrop(object sender, DragEventArgs e)
{
string[] droppedPaths = (string[])e.Data.GetData(DataFormats.FileDrop);
foreach(string path in droppedPaths)
await LoadDroppedPaths(droppedPaths);
}
public async Task LoadDroppedPaths (string[] droppedPaths)
{
foreach (string path in droppedPaths)
{
string frame1 = Path.Combine(path, "00000001.png");
if (IOUtils.IsPathDirectory(path) && !File.Exists(frame1))