pre-select job base model if there is only one choice

This commit is contained in:
Markus Lampert
2019-01-20 12:53:24 -08:00
committed by wmayer
parent 0ba57765c3
commit d4f01c4403

View File

@@ -81,6 +81,10 @@ class JobCreate:
self.candidates = sorted(PathJob.ObjectJob.baseCandidates(), key=lambda o: o.Label)
# If there is only one possibility we might as well make sure it's selected
if not preSelected and 1 == len(self.candidates):
preSelected = Counter([self.candidates[0].Label])
expandSolids = False
expand2Ds = False
expandJobs = False