def onSettingsChanged(self): try: self.tts._update() except TTSClosedException: return self.checkBackend() self.reloadSettings() self.updateInterval() #Deprecated for the addon starting with Gotham - now using NotifyAll (Still used for SHUTDOWN until I figure out the issue when using NotifyAll with that) command = util.getCommand() if not command: return self.processCommand(command)
def onSettingsChanged(self): command = util.getCommand() if not command: return util.LOG(command) if command == "REPEAT": self.repeatText() elif command == "EXTRA": self.sayExtra() elif command == "ITEM_EXTRA": self.sayItemExtra() elif command == "STOP": self.stopSpeech()