Add config

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-05-28 19:45:18 +02:00
parent 52f08e983c
commit b663e7b753
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -26,12 +26,18 @@ class UnloaderManager(QtCore.QObject):
tabs = None tabs = None
timer = None timer = None
threshold = None threshold = None
config = None
def __init__(self, settingsPath, parent=None): def __init__(self, settingsPath, parent=None):
super().__init__(parent) super().__init__(parent)
self.tabs = {} self.config = {
self.threshold = 15 "settingsPath": settingsPath,
"threshold": 600,
"updateInterval": 5
}
self.threshold = self.config["threshold"]
self.timer = QtCore.QTimer(self) self.timer = QtCore.QTimer(self)
self.timer.setTimerType(QtCore.Qt.VeryCoarseTimer) self.timer.setTimerType(QtCore.Qt.VeryCoarseTimer)