Fix tray menu cutting of the wrong end of tasks
This commit is contained in:
parent
c25912ef6a
commit
8f414901cb
@ -106,7 +106,7 @@ class App:
|
|||||||
already_taken = (len(self.tasks.tasks) + 4) * action_height
|
already_taken = (len(self.tasks.tasks) + 4) * action_height
|
||||||
available_space = get_screen_height(self.menu) * 0.8 - already_taken
|
available_space = get_screen_height(self.menu) * 0.8 - already_taken
|
||||||
jira_entry_count = int(available_space // action_height)
|
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()
|
self.menu.addSeparator()
|
||||||
add_tasks(["Pause"])
|
add_tasks(["Pause"])
|
||||||
|
Loading…
Reference in New Issue
Block a user