We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad0090 commit 29f3d1aCopy full SHA for 29f3d1a
Source/Menu/DownloadContentForm.cs
@@ -883,7 +883,23 @@ private int determineSelectedIndex(ComboBox comboBox, string compareWith)
883
}
884
else
885
{
886
- throw new StartNotFound(Catalog.GetStringFmt(compareWith));
+ if (classOfItem == "Route")
887
+ {
888
+ // if a route is not found and amount of routes is 1
889
+ // then default to this one and only route
890
+ if (comboBox.Items.Count == 1)
891
892
+ index = 0;
893
+ }
894
+ else
895
896
+ throw new StartNotFound(Catalog.GetStringFmt(compareWith));
897
898
899
900
901
902
903
904
905
return index;
0 commit comments