Refreshing workflows now works.
This commit is contained in:
parent
3e5be133ad
commit
490038d9bf
|
@ -93,6 +93,7 @@ class FluentApp:
|
||||||
'on_zoom_out_button_clicked' : (self.on_multiple_view),
|
'on_zoom_out_button_clicked' : (self.on_multiple_view),
|
||||||
'on_new1_activate' : (self.on_create_project),
|
'on_new1_activate' : (self.on_create_project),
|
||||||
'on_button_new_clicked' : (self.on_create_project),
|
'on_button_new_clicked' : (self.on_create_project),
|
||||||
|
'on_workflow_refresh_clicked' : (self.on_workflow_refresh_clicked),
|
||||||
'on_about1_activate' : (self.on_help_about)}
|
'on_about1_activate' : (self.on_help_about)}
|
||||||
self.widget_tree.signal_autoconnect(signals)
|
self.widget_tree.signal_autoconnect(signals)
|
||||||
|
|
||||||
|
@ -123,3 +124,11 @@ class FluentApp:
|
||||||
about = widget_tree.get_widget('aboutdialog')
|
about = widget_tree.get_widget('aboutdialog')
|
||||||
about.run()
|
about.run()
|
||||||
|
|
||||||
|
def on_workflow_refresh_clicked(self, *ignored):
|
||||||
|
try:
|
||||||
|
reload(sys.modules[self.workflow.__class__.__module__])
|
||||||
|
except Exception, e:
|
||||||
|
logger.log('warning', 'Cannot reload workflow')
|
||||||
|
logger.log('warning', e)
|
||||||
|
else:
|
||||||
|
logger.log('notice', 'Successfully reloaded workflow')
|
||||||
|
|
Reference in New Issue