diff --git a/ArchiSteamFarm/OS.cs b/ArchiSteamFarm/OS.cs index d0817ca31..61b2030ca 100644 --- a/ArchiSteamFarm/OS.cs +++ b/ArchiSteamFarm/OS.cs @@ -28,18 +28,12 @@ using ArchiSteamFarm.Localization; namespace ArchiSteamFarm { internal static class OS { internal static void Init(bool service) { - switch (Environment.OSVersion.Platform) { - case PlatformID.Win32NT: - case PlatformID.Win32S: - case PlatformID.Win32Windows: - case PlatformID.WinCE: - DisableQuickEditMode(); + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { + DisableQuickEditMode(); - if (service) { - KeepWindowsSystemActive(); - } - - break; + if (service) { + KeepWindowsSystemActive(); + } } }