Fix share button was not visible in win11
Some checks are pending
MSBuild / build (push) Waiting to run
MSBuild / publish (push) Blocked by required conditions

This commit is contained in:
ema
2025-05-24 13:20:51 +08:00
parent d20eb71f2b
commit 77c332d825

View File

@@ -36,7 +36,7 @@ internal class ShareHelper
internal static bool IsShareSupported(string path)
{
return !Directory.Exists(path) && App.IsWin10 && Environment.OSVersion.Version >= new Version("10.0.16299.0");
return !Directory.Exists(path) && Environment.OSVersion.Version >= new Version(10, 0, 16299);
}
internal static void Share(string path, Window parent, bool forceOpenWith = false)