From e89fbe18d72ffd8ce8a09e0abaa91820d02ea43b Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 16 Nov 2021 17:19:11 +0100 Subject: [PATCH] Only show Nothing, when Nothing is selected yet --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9ec1043..861c182 100755 --- a/main.py +++ b/main.py @@ -57,7 +57,8 @@ class App: self.menu.clear() tasks = list(self.tasks.tasks) tasks.append("Pause") - tasks.append("Nothing") + if self.active_task == "Nothing": + tasks.append("Nothing") for t in tasks: a = self.menu.addAction(t)