Skip to content

Commit 5f4685a

Browse files
Merge pull request #2100 from Flow-Launcher/fallback-notification
Fallback to legacy notification for windows 22621
2 parents b97b567 + dee74b8 commit 5f4685a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Flow.Launcher/Notification.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,12 @@ private static void ShowInternal(string title, string subTitle, string iconPath
5555
// Temporary fix for the Windows 11 notification issue
5656
// Possibly from 22621.1413 or 22621.1485, judging by post time of #2024
5757
Log.Exception("Flow.Launcher.Notification|Notification InvalidOperationException Error", e);
58-
if (Environment.OSVersion.Version.Build >= 22621)
59-
{
60-
return;
61-
}
62-
else
63-
{
64-
throw;
65-
}
58+
LegacyShow(title, subTitle, iconPath);
6659
}
6760
catch (Exception e)
6861
{
6962
Log.Exception("Flow.Launcher.Notification|Notification Error", e);
70-
throw;
63+
LegacyShow(title, subTitle, iconPath);
7164
}
7265
}
7366

0 commit comments

Comments
 (0)