Skip to content

Commit

Permalink
- Fix empty string when answering create shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Mar 26, 2023
1 parent cbb7930 commit 95c1f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DLCQuestipelagoInstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public static void Main()

Console.WriteLine($"Your modded DLCQuest is now available at {moddedFolder}. To Run it, Launch \"{BEPINEX_EXECUTABLE}\".");
Console.WriteLine("Do you wish to Create a Desktop Shortcut? [yes/no]");
var createShortcutAnswer = Console.ReadLine();
if (createShortcutAnswer.ToLower().First() == 'y')
var createShortcutAnswer = Console.ReadLine() ?? "";
if (createShortcutAnswer.Length > 0 && createShortcutAnswer.ToLower().First() == 'y')
{
CreateDesktopShortcut(moddedFolder);
}
Expand Down

0 comments on commit 95c1f9b

Please sign in to comment.