Print ffmpeg log while waiting for autoenc to finish

This commit is contained in:
N00MKRAD
2021-01-06 21:44:09 +01:00
parent c31c6872e8
commit 36c8a17dff
8 changed files with 20 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ namespace Flowframes
public static void Log(string s, bool hidden = false, bool replaceLastLine = false, string filename = "")
{
if (s == null)
if (string.IsNullOrWhiteSpace(s))
return;
Console.WriteLine(s);
@@ -97,5 +97,10 @@ namespace Flowframes
string[] lines = textbox.Text.SplitIntoLines();
return lines.Last();
}
public static void RemoveLastLine ()
{
textbox.Text = textbox.Text.Remove(textbox.Text.LastIndexOf(Environment.NewLine));
}
}
}