Add config
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
52f08e983c
commit
b663e7b753
@ -26,12 +26,18 @@ class UnloaderManager(QtCore.QObject):
|
||||
tabs = None
|
||||
timer = None
|
||||
threshold = None
|
||||
config = None
|
||||
|
||||
def __init__(self, settingsPath, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
self.tabs = {}
|
||||
self.threshold = 15
|
||||
self.config = {
|
||||
"settingsPath": settingsPath,
|
||||
"threshold": 600,
|
||||
"updateInterval": 5
|
||||
}
|
||||
|
||||
self.threshold = self.config["threshold"]
|
||||
|
||||
self.timer = QtCore.QTimer(self)
|
||||
self.timer.setTimerType(QtCore.Qt.VeryCoarseTimer)
|
||||
|
Loading…
Reference in New Issue
Block a user