Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent potential issue with shortcutOverlay not being recognized #151

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd. The domain dock has appeared on the left in the plotter for as long as I can recall.


# 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