mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2026-01-01 16:59:37 +01:00
committed by
Patrik Svensson
parent
28e9c14de4
commit
102e2dc38d
@@ -44,6 +44,11 @@ namespace Spectre.Console
|
||||
bars = Math.Max(0, bars);
|
||||
}
|
||||
|
||||
if (bars < 0)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
||||
yield return new Segment(new string(token, bars), style);
|
||||
|
||||
if (ShowValue)
|
||||
|
||||
Reference in New Issue
Block a user