mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Handle exceptions inside ChangeLanguageAsync to avoid unobserved task crashes
This commit is contained in:
parent
86581e6a00
commit
0f6245a072
1 changed files with 4 additions and 0 deletions
|
|
@ -206,6 +206,10 @@ namespace Flow.Launcher.Core.Resource
|
|||
await Task.Run(UpdatePluginMetadataTranslations);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
API.LogException(ClassName, $"Failed to change language to <{language.LanguageCode}>", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
_langChangeLock.Release();
|
||||
|
|
|
|||
Loading…
Reference in a new issue