increase platform required for win10 notification

This commit is contained in:
Kevin Zhang 2021-11-13 15:37:23 -06:00
parent 1ab9c085af
commit 4ded458aba

View file

@ -11,8 +11,8 @@ namespace Flow.Launcher
[System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "<Pending>")]
public static void Show(string title, string subTitle, string iconPath)
{
var legacy = Environment.OSVersion.Version.Major < 10;
// Handle notification for win7/8
var legacy = Environment.OSVersion.Version.Build < 19041;
// Handle notification for win7/8/early win10
if (legacy)
{
LegacyShow(title, subTitle, iconPath);