From 57a2ce91ce653348570424f8b5878bd04239a95e Mon Sep 17 00:00:00 2001 From: Nils <> Date: Mon, 20 Apr 2020 13:17:38 +0200 Subject: [PATCH] more logging --- qtgui/mainwindow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 9acc2d3..687aa0e 100644 --- a/qtgui/mainwindow.py +++ b/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 = {