Stop and disconnect input.partial_timeout

This commit is contained in:
jakanakae-envangel 2018-09-21 15:18:36 +02:00 committed by brightonanc
parent aa2eb2c36e
commit 07b77dd682
2 changed files with 6 additions and 10 deletions

View File

@ -393,3 +393,9 @@ class BaseKeyParser(QObject):
self._sequence = keyutils.KeySequence()
self._count = ''
self.keystring_updated.emit('')
self._partial_timer.stop()
try:
self._partial_timer.timeout.disconnect(self.clear_partial_match)
except TypeError:
# no connections
pass

View File

@ -127,16 +127,6 @@ class NormalKeyParser(CommandKeyParser):
self._debug_log("Releasing inhibition state of normal mode.")
self._inhibited = False
@pyqtSlot()
def _stop_timers(self):
super()._stop_timers()
self._inhibited_timer.stop()
try:
self._inhibited_timer.timeout.disconnect(self._clear_inhibited)
except TypeError:
# no connections
pass
class PassthroughKeyParser(CommandKeyParser):