fix: transmission-remote only list every other label (fixes #5571) (#5572)

This commit is contained in:
Robin Seth Ekman 2023-06-12 03:19:54 +02:00 committed by Charles Kerr
parent 61c79b5944
commit bc9e8e406e
1 changed files with 2 additions and 2 deletions

View File

@ -951,9 +951,9 @@ static void printDetails(tr_variant* top)
for (size_t child_idx = 0, n_children = tr_variantListSize(l); child_idx < n_children; ++child_idx)
{
if (tr_variantGetStrView(tr_variantListChild(l, child_idx++), &sv))
if (tr_variantGetStrView(tr_variantListChild(l, child_idx), &sv))
{
fmt::print(child_idx == 1 ? "{:s}" : ", {:s}", sv);
fmt::print(child_idx == 0 ? "{:s}" : ", {:s}", sv);
}
}