Keystroke editor dialog is showed even if config has changed

This commit is contained in:
Manuel Cortez 2015-04-14 09:41:12 -05:00
parent 5490a59eb5
commit 7facb9b020
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class keystrokeEditorDialog(baseDialog.BaseWXDialog):
def put_keystrokes(self, actions, keystrokes):
for i in keystrokes:
if actions.has_key(i) == False:
continue
action = actions[i]
self.actions.append(i)
keystroke = keystrokes[i]

View File

@ -130,6 +130,10 @@ class URLStream(object):
self.stream.play()
log.debug("played")
def stop_audio(self):
if hasattr(self, "stream") and self.stream.is_playing == True:
self.stream.stop()
@staticmethod
def delete_old_tempfiles():
for f in glob(os.path.join(tempfile.gettempdir(), 'tmp*.wav')):