更改OScheck

This commit is contained in:
cgl
2022-06-04 07:47:31 +08:00
parent 019e69d92c
commit 95359eed7b

View File

@@ -566,9 +566,9 @@ namespace MeoAsstGui
private bool _toastOS = Convert.ToBoolean(bool.TrueString);
public bool toastOScheck()
{
var os = Environment.OSVersion.Version;
if (os.ToString().CompareTo("10.0.0.10240") > 0)
{
var os = RuntimeInformation.OSDescription.ToString();
if (os.ToString().CompareTo("Microsoft Windows 10.0.22000") > 0)
{
return true;
}
else