Show remaining time to last deadline
[gregoa/zavai.git] / plugins / 60_audio_notes.py
index 91f015e2a9c52856ccc1e3af94684dcec2476ffa..d2745b3df795d4c7888555813e177f26b7083915 100644 (file)
@@ -9,7 +9,7 @@ class AudioNotes(gtk.ToggleAction):
 
     def __init__(self, registry, **kw):
         self.state = 0
-        super(AudioNotes, self).__init__("menu.main.notes.audio", self.states[self.state], None, None)
+        super(AudioNotes, self).__init__("menu.main.organiser.audionote", self.states[self.state], None, None)
 
         self.registry = registry
         self.recorder = zavai.Recorder(registry)
@@ -30,10 +30,9 @@ class AudioNotes(gtk.ToggleAction):
             self.stop()
 
     def start(self):
-        zavai.info("Audio note started")
-
         name = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime())
-        os.path.join(self.registry.resource("conf").homedir, name + ".wav")
+        name = os.path.join(self.registry.resource("conf").homedir, name + ".wav")
+        zavai.info("Audio note started on", name)
         self.recorder.start(name)
 
     def stop(self):