[PTRun][Calculator]fix copy/paste culture bug (#15207)

* changing culture info

* Update ResultHelper.cs

Remove comment
This commit is contained in:
Clint Rutkas 2022-01-03 09:44:32 -08:00 committed by GitHub
parent f63d389d26
commit 740230c870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,8 +46,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator
{ {
try try
{ {
// Using CurrentUICulture since this is user facing Clipboard.SetText(roundedResult?.ToString(CultureInfo.CurrentCulture));
Clipboard.SetText(roundedResult?.ToString(CultureInfo.CurrentUICulture.NumberFormat));
ret = true; ret = true;
} }
catch (ExternalException) catch (ExternalException)