From 1ae8327a4373e04fb1f457e0bc304b957c7b7aa9 Mon Sep 17 00:00:00 2001 From: Jvr <109031036+Jvr2022@users.noreply.github.com> Date: Thu, 20 Jun 2024 11:27:29 +0200 Subject: [PATCH] [Deps]Update Unitsnet to 5.50.0 (#32572) * [DEPS] Update Unitsnet to 5.50.0 * [DEPS] Update Unitsnet to 5.50.0 * fix bug 1 --- Directory.Packages.props | 4 ++-- NOTICE.md | 2 +- .../UnitHandler.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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; }