diff --git a/system/fluents.py b/system/fluents.py index d96b361..e568761 100755 --- a/system/fluents.py +++ b/system/fluents.py @@ -93,6 +93,7 @@ class FluentApp: 'on_zoom_out_button_clicked' : (self.on_multiple_view), 'on_new1_activate' : (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)} self.widget_tree.signal_autoconnect(signals) @@ -123,3 +124,11 @@ class FluentApp: about = widget_tree.get_widget('aboutdialog') 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')