Merged in bugfix/idle_manager_exit_bug (pull request #408)

Bugfix/idle manager exit bug

Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
Jakub Trllo 2019-12-10 23:07:08 +00:00 committed by Milan Kolar
commit 0e13e2dd04

View file

@ -1,6 +1,6 @@
import time
import collections
from Qt import QtCore, QtGui, QtWidgets
from Qt import QtCore
from pynput import mouse, keyboard
from pypeapp import Logger
@ -29,6 +29,13 @@ class IdleManager(QtCore.QThread):
def tray_start(self):
self.start()
def tray_exit(self):
self.stop()
try:
self.time_signals = {}
except Exception:
pass
def add_time_signal(self, emit_time, signal):
""" If any module want to use IdleManager, need to use add_time_signal
:param emit_time: time when signal will be emitted