Only show Nothing, when Nothing is selected yet

This commit is contained in:
Fabian 2021-11-16 17:19:11 +01:00
parent f99960a96c
commit e89fbe18d7

View File

@ -57,7 +57,8 @@ class App:
self.menu.clear() self.menu.clear()
tasks = list(self.tasks.tasks) tasks = list(self.tasks.tasks)
tasks.append("Pause") tasks.append("Pause")
tasks.append("Nothing") if self.active_task == "Nothing":
tasks.append("Nothing")
for t in tasks: for t in tasks:
a = self.menu.addAction(t) a = self.menu.addAction(t)