Skip to content

Commit

Permalink
Fix 'dunno' not working
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraSwat committed Jun 21, 2020
1 parent 152b7c3 commit 62d2e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/UnityBugReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void BugReporter()
file.WriteLine();
Console.WriteLine("Please enter the affected Unity7 program (if you do not know, please type 'dunno'):");
string affectedProgram = Console.ReadLine();
if (!affectedProgram.Contains("unity")) {
if (!affectedProgram.Contains("unity") && (!(affectedProgram == "dunno"))) {
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("ERROR: NOT A UNITY BUG");
Environment.Exit(-1);
Expand All @@ -57,7 +57,7 @@ public static void BugReporter()
}

public static void openLaunchpad(string pName) {
if ((pName == "dunno") || (pName == "'dunno'"))
if (pName == "dunno")
{
Process.Start("xdg-open", "https://bugs.launchpad.net/ubuntu/+filebug?no-redirect");
}
Expand Down

0 comments on commit 62d2e6d

Please sign in to comment.