Skip to content

Commit

Permalink
Fix a bug where the project window's project menu would not expand an…
Browse files Browse the repository at this point in the history
…d show any actions. (bartfeenstra#914)
  • Loading branch information
bartfeenstra authored Nov 13, 2022
1 parent 56573f0 commit 59f8ddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions betty/gui/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,17 +402,17 @@ def __init__(self, app: App, *args, **kwargs):
self.save_project_as_action = QAction(self)
self.save_project_as_action.setShortcut('Ctrl+Shift+S')
self.save_project_as_action.triggered.connect(lambda _: self._save_project_as()) # type: ignore
self.addAction(self.save_project_as_action)
self.project_menu.addAction(self.save_project_as_action)

self.generate_action = QAction(self)
self.generate_action.setShortcut('Ctrl+G')
self.generate_action.triggered.connect(lambda _: self._generate()) # type: ignore
self.addAction(self.generate_action)
self.project_menu.addAction(self.generate_action)

self.serve_action = QAction(self)
self.serve_action.setShortcut('Ctrl+Alt+S')
self.serve_action.triggered.connect(lambda _: self._serve()) # type: ignore
self.addAction(self.serve_action)
self.project_menu.addAction(self.serve_action)

def _add_pane(self, pane_name: str, pane: QWidget) -> None:
self._panes[pane_name] = pane
Expand Down

0 comments on commit 59f8ddd

Please sign in to comment.