Browse Source

more logging

master
Nils 5 years ago
parent
commit
57a2ce91ce
  1. 5
      qtgui/mainwindow.py

5
qtgui/mainwindow.py

@ -140,6 +140,7 @@ class MainWindow(QtWidgets.QMainWindow):
#Handle the application data cache. If not present instruct the engine to build one.
#This is also needed by the prompt in sessionController
logger.info("Trying to restore cached program database")
settings = QtCore.QSettings("LaborejoSoftwareSuite", METADATA["shortName"])
if settings.contains("programDatabase"):
listOfDicts = settings.value("programDatabase")
@ -148,6 +149,7 @@ class MainWindow(QtWidgets.QMainWindow):
self._updateGUIWithCachedPrograms()
else: #First or fresh start
#A single shot timer with 0 durations is executed only after the app starts, thus the main window is ready.
logger.info("First run. Instructing engine to build program database")
QtCore.QTimer.singleShot(0, self.updateProgramDatabase) #includes self._updateGUIWithCachedPrograms()
if not self.isVisible():
@ -155,7 +157,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.systemTray.showMessage("Argodejo", text, QtWidgets.QSystemTrayIcon.Information, 2000) #title, message, icon, timeout. #has messageClicked() signal.
qtApp.exec_()
#No code after exec_
#No code after exec_ except atexit
def tabtest(self):
@ -339,6 +341,7 @@ class MainWindow(QtWidgets.QMainWindow):
def restoreWindowSettings(self):
"""opposite of storeWindowSettings. Read there."""
logger.info("Restoring window settings, geometry and recently opened session")
settings = QtCore.QSettings("LaborejoSoftwareSuite", METADATA["shortName"])
actions = {

Loading…
Cancel
Save