Small change to logging after loading canvas.

This commit is contained in:
AccentuSoft
2021-12-27 20:43:16 +02:00
parent b3cb0f0fea
commit 57e9b5d471
2 changed files with 4 additions and 1 deletions

View File

@@ -1164,7 +1164,7 @@ class CanvasScene(QtWidgets.QGraphicsScene):
self.addEntityLinkCreatorHelper(self.nodesDict[entity])
progress.setValue(steps)
self.parent().mainWindow.MESSAGEHANDLER.info('Loaded canvas ' + self.getSelfName())
self.parent().mainWindow.MESSAGEHANDLER.info('Loaded canvas ' + canvasName)
def updatePositionInDB(self, uid, x, y) -> None:
"""

View File

@@ -51,6 +51,9 @@ class DockBarThree(QtWidgets.QDockWidget):
self.chatBox = ChatBox(self, self.parent())
self.timeWidget = TimeWidget(self, self.parent())
self.logViewer = QtWidgets.QPlainTextEdit()
# Because we're not going to stop the thread before closing, an error will be thrown by Qt.
# That error can be safely ignored.
logViewerUpdateThread = LoggingUpdateThread(mainWindow.MESSAGEHANDLER)
logViewerUpdateThread.loggingSignal.connect(self.updateLogs)
logViewerUpdateThread.start()