diff --git a/ConsoleUI/ModListScreen.cs b/ConsoleUI/ModListScreen.cs index 47aff914dd..0ff505fc39 100644 --- a/ConsoleUI/ModListScreen.cs +++ b/ConsoleUI/ModListScreen.cs @@ -383,8 +383,7 @@ private bool UpdateRegistry() } } }); - if (recent.Count > 0 && RaiseYesNoDialog( - $"{recent.Count} new mods available since last update. Show them?")) { + if (recent.Count > 0 && RaiseYesNoDialog(newModPrompt(recent.Count))) { searchBox.Clear(); moduleList.FilterString = searchBox.Value = "~n"; } @@ -392,6 +391,13 @@ private bool UpdateRegistry() return true; } + private string newModPrompt(int howMany) + { + return howMany == 1 + ? $"{howMany} new mod available since last update. Show it?" + : $"{howMany} new mods available since last update. Show them?"; + } + private bool ScanForMods() { try {