mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Keystroke editor dialog is showed even if config has changed
This commit is contained in:
parent
5490a59eb5
commit
7facb9b020
@ -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]
|
||||
|
@ -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')):
|
||||
|
Loading…
Reference in New Issue
Block a user