mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-15 16:07:45 +01:00
Added missing log textbox invokes, minor cleanup
This commit is contained in:
@@ -81,11 +81,11 @@ namespace Flowframes
|
||||
{
|
||||
if (!entry.hidden && entry.replaceLastLine)
|
||||
{
|
||||
textbox.Invoke(new Action(() => {
|
||||
textbox.Invoke(() => {
|
||||
textbox.Suspend();
|
||||
string[] lines = textbox.Text.SplitIntoLines();
|
||||
textbox.Text = string.Join(Environment.NewLine, lines.Take(lines.Count() - 1).ToArray());
|
||||
}));
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -200,7 +200,7 @@ namespace Flowframes
|
||||
|
||||
public static void ClearLogBox()
|
||||
{
|
||||
textbox.Text = "";
|
||||
textbox.Invoke(() => textbox.Text = "");
|
||||
}
|
||||
|
||||
public static string GetLastLine(bool includeHidden = false)
|
||||
@@ -210,7 +210,7 @@ namespace Flowframes
|
||||
|
||||
public static void RemoveLastLine()
|
||||
{
|
||||
textbox.Text = textbox.Text.Remove(textbox.Text.LastIndexOf(Environment.NewLine));
|
||||
textbox.Invoke(() => textbox.Text = textbox.Text.Remove(textbox.Text.LastIndexOf(Environment.NewLine)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Flowframes.Main
|
||||
string extraArgsIn = await FfmpegEncode.GetFfmpegExportArgsIn(I.currentMediaFile.IsVfr ? s.outFpsResampled : s.outFps, s.outItsScale, extraData.Rotation);
|
||||
string extraArgsOut = await FfmpegEncode.GetFfmpegExportArgsOut(fpsLimit ? MaxFpsFrac : new Fraction(), extraData, s.outSettings);
|
||||
|
||||
// For EXR, force bt709 input flags. Not sure if this really does anything, EXR
|
||||
// For EXR, force bt709 input flags. Not sure if this really does anything
|
||||
if (s.outSettings.Encoder == Enums.Encoding.Encoder.Exr)
|
||||
{
|
||||
extraArgsIn += " -color_trc bt709 -color_primaries bt709 -colorspace bt709";
|
||||
|
||||
Reference in New Issue
Block a user