private async Task RefreshModList() { List <ModInfo> modInfos; try { modInfos = await ModHelper.FetchMods(Window); } catch (WebException) { MessageBox.Show(Window, App.Instance.GetLocalizedMessage("InternetConnection", MessageType.Error), App.Instance.GetLocalizedMessageTitle("InternetConnection", MessageType.Error), MessageBoxButton.OK, MessageBoxImage.Error); return; } if (modInfos != null) { Mods = modInfos; } }