Fix silly mistake with line length check

This commit is contained in:
Kurt
2015-06-11 12:48:02 -07:00
parent 201f0db061
commit 9426bde9cf

View File

@@ -53,7 +53,7 @@ public Main()
string[] lines = File.ReadAllLines("config.ini");
string path = lines[0];
int lang;
if (lines.Length > 0 && int.TryParse(lines[1], out lang))
if (lines.Length > 1 && int.TryParse(lines[1], out lang))
CB_Lang.SelectedIndex = lang;
if (Directory.Exists("personal") && !skipBoth) { Directory.Delete("personal", true); } // Clear data on form load.
if (path.Length > 0) openQuick(path);