diff --git a/Directory.Packages.props b/Directory.Packages.props index 0c64c73a53..b6e7df37c8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -86,7 +86,7 @@ - + @@ -98,4 +98,4 @@ - \ No newline at end of file + diff --git a/NOTICE.md b/NOTICE.md index bdef06557e..b917ef830f 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -1365,7 +1365,7 @@ EXHIBIT A -Mozilla Public License. - System.ServiceProcess.ServiceController 8.0.0 - System.Text.Encoding.CodePages 8.0.0 - UnicodeInformation 2.6.0 -- UnitsNet 4.145.0 +- UnitsNet 5.50.0 - UTF.Unknown 2.5.1 - Vanara.PInvoke.Shell32 3.4.11 - Vanara.PInvoke.User32 3.4.11 diff --git a/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.UnitConverter/UnitHandler.cs b/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.UnitConverter/UnitHandler.cs index a24e6fd90b..5038c13a3e 100644 --- a/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.UnitConverter/UnitHandler.cs +++ b/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.UnitConverter/UnitHandler.cs @@ -44,13 +44,13 @@ namespace Community.PowerToys.Run.Plugin.UnitConverter return first.Value; } - if (UnitParser.Default.TryParse(unit, unitInfo.UnitType, out Enum enum_unit)) + if (UnitsNetSetup.Default.UnitParser.TryParse(unit, unitInfo.UnitType, out Enum enum_unit)) { return enum_unit; } var cultureInfoEnglish = new System.Globalization.CultureInfo("en-US"); - if (UnitParser.Default.TryParse(unit, unitInfo.UnitType, cultureInfoEnglish, out Enum enum_unit_en)) + if (UnitsNetSetup.Default.UnitParser.TryParse(unit, unitInfo.UnitType, cultureInfoEnglish, out Enum enum_unit_en)) { return enum_unit_en; }