Skip to content

Commit 9020d5f

Browse files
committed
Display neutral value while in axis edit mode.
1 parent 0eb0905 commit 9020d5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ private void TasView_QueryItemText(int index, RollColumn column, out string text
349349
else if (column.Type is ColumnType.Boolean or ColumnType.Axis)
350350
{
351351
// Display typed float value (string "-" can't be parsed, so CurrentTasMovie.DisplayValue can't return it)
352-
if (columnName == AxisEditColumn && TasView.IsRowSelected(index) && _didAxisType)
352+
bool axisEditing = columnName == AxisEditColumn && TasView.IsRowSelected(index);
353+
if (axisEditing && _didAxisType)
353354
{
354355
text = _axisTypedValue;
355356
}
@@ -359,7 +360,7 @@ private void TasView_QueryItemText(int index, RollColumn column, out string text
359360
if (column.Type == ColumnType.Axis)
360361
{
361362
// feos: this could be cached, but I don't notice any slowdown this way either
362-
if (text == ((float) ControllerType.Axes[columnName].Neutral).ToString(NumberFormatInfo.InvariantInfo))
363+
if (!axisEditing && text == ((float) ControllerType.Axes[columnName].Neutral).ToString(NumberFormatInfo.InvariantInfo))
363364
{
364365
text = "";
365366
}

0 commit comments

Comments
 (0)