diff --git a/bumblebee/modules/todo.py b/bumblebee/modules/todo.py index 04cd256..b26d7c7 100644 --- a/bumblebee/modules/todo.py +++ b/bumblebee/modules/todo.py @@ -21,11 +21,12 @@ class Module(bumblebee.engine.Module): ) self._doc = os.path.expanduser(self.parameter("file", "~/Documents/todo.txt")) self._todos = self.count_items() + engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd="xdg-open {0}".format(self._doc)) def output(self, widget): - self._todos = self.count_items() - return str(self._todos) + self._todos = self.count_items() + return str(self._todos) def state(self, widgets):