Skip to content

Commit

Permalink
imp - Improved the look of listing devices
Browse files Browse the repository at this point in the history
---

We've improved the look of listing devices by type to ensure that the name doesn't get printed twice.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 28, 2024
1 parent fa1cfba commit 0e6a99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Commands/DriverMan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public override int Execute(CommandParameters parameters, ref string variableVal
}
case "list":
{
TextFancyWriters.WriteSeparator(Translate.DoTranslation("Drivers for") + $" {typeTerm}", KernelColorType.Separator);
foreach (var driver in DriverHandler.GetDrivers(typeTerm))
{
if (!driver.DriverInternal)
{
SeparatorWriterColor.WriteSeparator(driver.DriverName, true);
TextWriters.Write("- " + Translate.DoTranslation("Driver name") + ": ", false, KernelColorType.ListEntry);
TextWriters.Write(driver.DriverName, true, KernelColorType.ListValue);
}
Expand Down

0 comments on commit 0e6a99e

Please sign in to comment.