mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
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:
commit
0e13e2dd04
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue