diff options
| author | tassaron | 2022-04-29 12:16:38 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-29 12:16:38 -0400 |
| commit | 5a95302bb50766b169cc897a3f5c03c3fb83daa3 (patch) | |
| tree | 0526e158e78417f526ea4c93b399766e69ad8a2f | |
| parent | dee29d0e700d4812bcf4f1a56d4cb2fb2b8cc0d1 (diff) | |
better log messages when setting window title
log before and after method call instead of just after
| -rw-r--r-- | src/gui/mainwindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py index f60befd..463d028 100644 --- a/src/gui/mainwindow.py +++ b/src/gui/mainwindow.py @@ -444,6 +444,7 @@ class MainWindow(QtWidgets.QMainWindow): @disableWhenOpeningProject def updateWindowTitle(self): + log.debug("Setting main window's title") appName = 'Audio Visualizer' try: if self.currentProject: @@ -454,7 +455,7 @@ class MainWindow(QtWidgets.QMainWindow): appName += '*' except AttributeError: pass - log.verbose('Setting window title to %s' % appName) + log.verbose(f'Window title is "{appName}"') self.window.setWindowTitle(appName) @QtCore.pyqtSlot(int, dict) |
