Skip to content

Commit dee74b8

Browse files
Catch exceptions and fallback
1 parent 85a077f commit dee74b8

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Flow.Launcher/Notification.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +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-
LegacyShow(title, subTitle, iconPath);
61-
return;
62-
}
63-
else
64-
{
65-
throw;
66-
}
58+
LegacyShow(title, subTitle, iconPath);
6759
}
6860
catch (Exception e)
6961
{
7062
Log.Exception("Flow.Launcher.Notification|Notification Error", e);
71-
throw;
63+
LegacyShow(title, subTitle, iconPath);
7264
}
7365
}
7466

0 commit comments

Comments
 (0)