Skip to content
Permalink
Browse files

fixed issue with auto select

  • Loading branch information
twocanoes committed Mar 14, 2019
1 parent a686624 commit 29f830d5b5202dea9128da8d7344b2f36019d99f
Showing with 7 additions and 3 deletions.
  1. +1 −1 Imagr/Info.plist
  2. +6 −2 Imagr/MainController.py
@@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1044</string>
<string>1066</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSAppTransportSecurity</key>
@@ -638,7 +638,7 @@ def runWorkflow_(self, sender):
selected_workflow = self.chooseWorkflowDropDown.titleOfSelectedItem()

if self.autorunWorkflow:
selected_workflow = self.autorunWorkflow
NSLog("running autorun workflow")
runWorkflowNow()

self.selectedWorkflow = None
@@ -661,15 +661,19 @@ def runWorkflow_(self, sender):
def runWorkflowNow(self):
'''Set up the selected workflow to run on secondary thread'''
self.workflow_is_running = True
selected_workflow = self.chooseWorkflowDropDown.titleOfSelectedItem()


# let's get the workflow
if self.autorunWorkflow:
selected_workflow = self.autorunWorkflow
else:
selected_workflow = self.chooseWorkflowDropDown.titleOfSelectedItem()
self.selectedWorkflow = None
for workflow in self.workflows:
if selected_workflow == workflow['name']:
self.selectedWorkflow = workflow
break
NSLog("Running Workflow %@",self.selectedWorkflow['name'])
if self.selectedWorkflow:
if 'restart_action' in self.selectedWorkflow:
self.restartAction = self.selectedWorkflow['restart_action']

0 comments on commit 29f830d

Please sign in to comment.
You can’t perform that action at this time.