Handle exceptions inside ChangeLanguageAsync to avoid unobserved task crashes

This commit is contained in:
Jack251970 2025-09-18 18:18:02 +08:00
parent 86581e6a00
commit 0f6245a072

View file

@ -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();