From 293067c7fa93650ea1462fcb7bb38eeb605af996 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 19 Jun 2024 13:41:18 -0500 Subject: [PATCH] Prevent potential issue with shortcutOverlay (#151) --- openmc_plotter/main_window.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openmc_plotter/main_window.py b/openmc_plotter/main_window.py index ce6da8d..2e1180d 100755 --- a/openmc_plotter/main_window.py +++ b/openmc_plotter/main_window.py @@ -83,7 +83,7 @@ def loadGui(self, use_settings_pkl=True): # Dock self.dock = DomainDock(self.model, self.font_metric, self) self.dock.setObjectName("Domain Options Dock") - self.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.dock) + self.addDockWidget(QtCore.Qt.LeftDockWidgetArea, self.dock) # Tally Dock self.tallyDock = TallyDock(self.model, self.font_metric, self) @@ -98,6 +98,10 @@ def loadGui(self, use_settings_pkl=True): # Tools self.exportDataDialog = ExportDataDialog(self.model, self.font_metric, self) + # Keyboard overlay + self.shortcutOverlay = ShortcutsOverlay(self) + self.shortcutOverlay.hide() + # Restore Window Settings self.restoreWindowSettings() @@ -110,10 +114,6 @@ def loadGui(self, use_settings_pkl=True): self.statusBar().addPermanentWidget(self.coord_label) self.coord_label.hide() - # Keyboard overlay - self.shortcutOverlay = ShortcutsOverlay(self) - self.shortcutOverlay.hide() - # Load Plot self.statusBar().showMessage('Generating Plot...') self.dock.updateDock() @@ -1077,7 +1077,7 @@ def restoreWindowSettings(self): settings = QtCore.QSettings() self.resize(settings.value("mainWindow/Size", - QtCore.QSize(800, 600))) + QtCore.QSize(1200, 800))) self.move(settings.value("mainWindow/Position", QtCore.QPoint(100, 100))) self.restoreState(settings.value("mainWindow/State"))