mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Catch exceptions and fallback
This commit is contained in:
parent
85a077f430
commit
dee74b842f
1 changed files with 2 additions and 10 deletions
|
|
@ -55,20 +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)
|
||||
{
|
||||
LegacyShow(title, subTitle, iconPath);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
LegacyShow(title, subTitle, iconPath);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Exception("Flow.Launcher.Notification|Notification Error", e);
|
||||
throw;
|
||||
LegacyShow(title, subTitle, iconPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue