Skip to content

Commit

Permalink
Add right-click option to process runs
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jul 19, 2024
1 parent 089641d commit 9c0d5fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions damnit/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ def _create_view(self) -> None:
self.table_view.doubleClicked.connect(self._inspect_data_proxy_idx)
self.table_view.settings_changed.connect(self.save_settings)
self.table_view.zulip_action.triggered.connect(self.export_selection_to_zulip)
self.table_view.process_action.triggered.connect(self.process_runs)
self.table_view.log_view_requested.connect(self.show_run_logs)

vertical_layout.addWidget(self.table_view)
Expand Down
2 changes: 2 additions & 0 deletions damnit/gui/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def __init__(self) -> None:
self.show_logs_action = QtWidgets.QAction('View processing logs')
self.show_logs_action.triggered.connect(self.show_run_logs)
self.context_menu.addAction(self.show_logs_action)
self.process_action = QtWidget.QAction('Reprocess runs')
self.context_menu.addAction(self.process_action)

def setModel(self, model: 'DamnitTableModel'):
"""
Expand Down

0 comments on commit 9c0d5fe

Please sign in to comment.