Update values formatting on editor options save #2213

This commit is contained in:
Wojtek Figat
2024-03-19 20:14:07 +01:00
parent 9e54827cb3
commit fc37cb3986
3 changed files with 27 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ public class Units
/// <summary>
/// Add a space between numbers and units for readability.
/// </summary>
public static bool SpaceNumberAndUnits = true;
public static bool SeparateValueAndUnit = true;
/// <summary>
/// If set to true, the distance unit is chosen on the magnitude, otherwise it's meters.
@@ -34,7 +34,7 @@ public class Units
/// <returns>The formatted text.</returns>
public static string Unit(string unit)
{
if (SpaceNumberAndUnits)
if (SeparateValueAndUnit)
return $" {unit}";
return unit;
}