From e3576c16529c7d7a940d904e39eab230098a3415 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Thu, 7 Nov 2024 10:20:29 +0100 Subject: [PATCH] Switched the CheckPlatform() private method of the Program class to AdvancedFeaturesSupported property use. --- src/kbhelper/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kbhelper/Program.cs b/src/kbhelper/Program.cs index 57895e6e..d588ede0 100644 --- a/src/kbhelper/Program.cs +++ b/src/kbhelper/Program.cs @@ -22,7 +22,7 @@ internal static class Program private static void CheckPlatform() { CurrentPlatform Platform = CurrentPlatform.Create(); - if (Platform.OS != CurrentPlatform.OSType.Windows) + if (!Platform.AdvancedFeaturesSupported) { MessageBox.Show(AppStrings.KB_OSNotSupported, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Error); Environment.Exit(ReturnCodes.PlatformNotSupported);