sigma update
This commit is contained in:
@@ -39,7 +39,8 @@ public abstract class DrawFolderBase : IDrawFolder
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
if (!RenderIfEmpty && !DrawPairs.Any()) return;
|
||||
var drawPairCount = DrawPairs.Count;
|
||||
if (!RenderIfEmpty && drawPairCount == 0) return;
|
||||
|
||||
_suppressNextRowToggle = false;
|
||||
|
||||
@@ -111,9 +112,9 @@ public abstract class DrawFolderBase : IDrawFolder
|
||||
if (_tagHandler.IsTagOpen(_id))
|
||||
{
|
||||
using var indent = ImRaii.PushIndent(_uiSharedService.GetIconSize(FontAwesomeIcon.EllipsisV).X + ImGui.GetStyle().ItemSpacing.X, false);
|
||||
if (DrawPairs.Any())
|
||||
if (drawPairCount > 0)
|
||||
{
|
||||
using var clipper = ImUtf8.ListClipper(DrawPairs.Count, ImGui.GetFrameHeightWithSpacing());
|
||||
using var clipper = ImUtf8.ListClipper(drawPairCount, ImGui.GetFrameHeightWithSpacing());
|
||||
while (clipper.Step())
|
||||
{
|
||||
for (var i = clipper.DisplayStart; i < clipper.DisplayEnd; i++)
|
||||
|
||||
Reference in New Issue
Block a user