diff --git a/src/fime/main.py b/src/fime/main.py index f492fb1..570c410 100755 --- a/src/fime/main.py +++ b/src/fime/main.py @@ -139,10 +139,13 @@ class App: add_tasks(["Nothing"]) menu_items.append((1, None)) - menu_items.append(("Import Jira task", partial(self.open_new_dialog, self.import_task))) + jira_integration = self.config.jira_url and self.config.jira_token + if jira_integration: + menu_items.append(("Import Jira task", partial(self.open_new_dialog, self.import_task))) menu_items.append(("Edit tasks", partial(self.open_new_dialog, self.taskEdit))) menu_items.append(("Report", partial(self.open_new_dialog, self.reportDialog))) - menu_items.append(("Worklog", partial(self.open_new_dialog, self.worklogDialog))) + if jira_integration: + menu_items.append(("Worklog", partial(self.open_new_dialog, self.worklogDialog))) menu_items.append((1, None))