From 22bfdde4ead0d5ec72d0e720a0fadc784517cc54 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 8 Sep 2019 14:11:58 +0100 Subject: [PATCH] WinGui: Fix a culture issues where nubmers were the status text is displayed with a point instead of a comman in some locales. --- win/CS/HandBrakeWPF/App.xaml.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index d9f76ef54..afec33498 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -100,7 +100,7 @@ namespace HandBrakeWPF // Portable Mode if (Portable.IsPortable()) { - if(!Portable.Initialise()) + if (!Portable.Initialise()) { Application.Current.Shutdown(); return; @@ -116,7 +116,6 @@ namespace HandBrakeWPF if (language != null) { CultureInfo ci = new CultureInfo(language.Culture); - Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; } } @@ -129,7 +128,6 @@ namespace HandBrakeWPF Application.Current.Resources.MergedDictionaries.Add(darkTheme); } - // NO-Hardware Mode bool noHardware = e.Args.Any(f => f.Equals("--no-hardware")) || (Portable.IsPortable() && !Portable.IsHardwareEnabled()); -- 2.40.0