Add some minor code cleanup

This commit is contained in:
Veronica Berglyd Olsen
2024-12-30 16:55:54 +01:00
parent 6448f05557
commit 4a6511b39f
3 changed files with 19 additions and 23 deletions
-4
View File
@@ -957,12 +957,8 @@ class GuiMain(QMainWindow):
docEditor = True
elif self.docViewer.isAncestorOf(new):
docViewer = True
self.docEditor.changeFocusState(docEditor)
self.docViewer.changeFocusState(docViewer)
logger.debug("Main focus switched to: %s", type(new).__name__)
return
@pyqtSlot(bool)