Rework Plugin.commands() to include _setup_commands().
[hooke.git] / hooke / plugin / multifit.py
index 986b7813a26e23de57cef0baec2004ded9f39647..ee42ea56f3eb9d39148988e41bc5e5d2baaf485f 100644 (file)
@@ -31,9 +31,9 @@ from ..plugin.playlist import PlaylistArgument
 class MultifitPlugin (Plugin):
     def __init__(self):
         super(MultifitPlugin, self).__init__(name='multifit')
+        self._commands = [MultifitCommand()]
+        self._setup_commands()
 
-    def commands(self):
-        return [MultifitCommand()]
 
 class MultifitCommand (Command):
     """Presents curves for interactive manual analysis.