def _handleProfileSwitch(self):
		if not self._shouldHandleProfileSwitch:
			self._pendingHandleProfileSwitch = True
			return
		init = self.rootSection is None
		# Reset the cache.
		self.rootSection = AggregatedSection(self, (), self.spec, self.profiles)
		if init:
			# We're still initialising, so don't notify anyone about this change.
			return
		import synthDriverHandler
		synthDriverHandler.handleConfigProfileSwitch()
		import braille
		braille.handler.handleConfigProfileSwitch()
Пример #2
0
 def _handleProfileSwitch(self):
     if not self._shouldHandleProfileSwitch:
         self._pendingHandleProfileSwitch = True
         return
     init = self.rootSection is None
     # Reset the cache.
     self.rootSection = AggregatedSection(self, (), self.spec,
                                          self.profiles)
     if init:
         # We're still initialising, so don't notify anyone about this change.
         return
     import synthDriverHandler
     synthDriverHandler.handleConfigProfileSwitch()
     import braille
     braille.handler.handleConfigProfileSwitch()