Skip to content

Commit

Permalink
Prevent potential issue with shortcutOverlay (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored Jun 19, 2024
1 parent d7ac96a commit 293067c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openmc_plotter/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()

Expand All @@ -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()
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit 293067c

Please sign in to comment.