Basic CLI/batch support

-start - Auto-start interpolation if file was also given
-quit-when-done - Auto-quit after task or queue
-factor - Interpolation factor (2/4/8)
-ai - Interpolation AI by dropdown index
-output-mode - Export mode by dropdown index
-model - AI model by dropdown index
This commit is contained in:
n00mkrad
2021-08-02 15:08:19 +02:00
parent e2cdb791fd
commit c3bdc27b94
7 changed files with 61 additions and 21 deletions

View File

@@ -115,7 +115,7 @@ namespace Flowframes.Forms
await LoadDroppedPaths(droppedPaths);
}
public async Task LoadDroppedPaths (string[] droppedPaths)
public async Task LoadDroppedPaths (string[] droppedPaths, bool start = false)
{
foreach (string path in droppedPaths)
{
@@ -131,6 +131,9 @@ namespace Flowframes.Forms
Program.batchQueue.Enqueue(current);
RefreshGui();
}
if (start)
runBtn_Click(null, null);
}
}
}