From d4f01c4403339a3fb427155d8131b853dca0cded Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 20 Jan 2019 12:53:24 -0800 Subject: [PATCH] pre-select job base model if there is only one choice --- src/Mod/Path/PathScripts/PathJobDlg.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathJobDlg.py b/src/Mod/Path/PathScripts/PathJobDlg.py index 4d02b9c327..b2ed038905 100644 --- a/src/Mod/Path/PathScripts/PathJobDlg.py +++ b/src/Mod/Path/PathScripts/PathJobDlg.py @@ -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