Minor UI improvements

This commit is contained in:
N00MKRAD
2024-12-24 00:10:33 +01:00
parent 3b35b63c68
commit 482ed1bca9
2 changed files with 6 additions and 4 deletions

View File

@@ -15,9 +15,7 @@ namespace Flowframes.Media
if (Config.GetBool(Config.Key.PerformedHwEncCheck))
return;
Logger.Log($"Detecting hardare encoding support...");
var statusForm = new SplashForm("Checking hardware encoders...", textSize: SplashForm.TextSize.Medium);
var previousMainFormOpacity = Program.mainForm.Opacity;
if (hideMainForm)
@@ -61,7 +59,11 @@ namespace Flowframes.Media
await Task.Delay(waitMs);
}
Logger.Log($"Available hardware encoders: {string.Join(", ", compEncsPretty)}");
if(compEncsPretty.Any())
{
Logger.Log($"Available hardware encoders: {string.Join(", ", compEncsPretty)}");
}
Config.Set(Config.Key.SupportedHwEncoders, string.Join(",", compatEncoders));
Config.Set(Config.Key.PerformedHwEncCheck, true.ToString());
}

View File

@@ -297,7 +297,7 @@ namespace Flowframes.Os
}
if (!gpusVk.Any() && !gpusNv.Any())
return "No GPUs detected.";
return "No GPUs detected";
string s = "";