Skip to content

Commit

Permalink
Minor UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
n00mkrad committed Dec 23, 2024
1 parent 3b35b63 commit 482ed1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions CodeLegacy/Media/HwEncCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static async Task DetectHwEncoders(bool hideMainForm = true, bool onlySho
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)
Expand Down Expand Up @@ -61,7 +59,11 @@ public static async Task DetectHwEncoders(bool hideMainForm = true, bool onlySho
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());
}
Expand Down
2 changes: 1 addition & 1 deletion CodeLegacy/Os/OsUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public static string GetGpus()
}

if (!gpusVk.Any() && !gpusNv.Any())
return "No GPUs detected.";
return "No GPUs detected";

string s = "";

Expand Down

0 comments on commit 482ed1b

Please sign in to comment.