Merge pull request #2100 from Flow-Launcher/fallback-notification

Fallback to legacy notification for windows 22621
This commit is contained in:
VictoriousRaptor 2023-04-29 13:40:18 +08:00 committed by GitHub
commit 5f4685ac80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,19 +55,12 @@ namespace Flow.Launcher
// Temporary fix for the Windows 11 notification issue
// Possibly from 22621.1413 or 22621.1485, judging by post time of #2024
Log.Exception("Flow.Launcher.Notification|Notification InvalidOperationException Error", e);
if (Environment.OSVersion.Version.Build >= 22621)
{
return;
}
else
{
throw;
}
LegacyShow(title, subTitle, iconPath);
}
catch (Exception e)
{
Log.Exception("Flow.Launcher.Notification|Notification Error", e);
throw;
LegacyShow(title, subTitle, iconPath);
}
}