From 8f414901cba1b24b66bee8d6df33292a6ce8dfee Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 12 Jan 2022 17:42:10 +0100 Subject: [PATCH] Fix tray menu cutting of the wrong end of tasks --- src/fime/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fime/main.py b/src/fime/main.py index df04ab0..4ad4a84 100755 --- a/src/fime/main.py +++ b/src/fime/main.py @@ -106,7 +106,7 @@ class App: already_taken = (len(self.tasks.tasks) + 4) * action_height available_space = get_screen_height(self.menu) * 0.8 - already_taken jira_entry_count = int(available_space // action_height) - add_tasks(self.tasks.jira_tasks[:jira_entry_count]) + add_tasks(self.tasks.jira_tasks[-jira_entry_count:]) self.menu.addSeparator() add_tasks(["Pause"])