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
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user