Merge pull request #812 from Flow-Launcher/NotificationVersion

[dev] NotificationVersion
This commit is contained in:
Jeremy Wu 2021-11-16 09:20:52 +11:00 committed by GitHub
commit 8f8636a9e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);