Skip to content

Commit

Permalink
Changed where in control flow when extensions update
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAV committed Feb 11, 2025
1 parent 9b667fb commit 627af67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/badger/gui/acr/pages/home_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
from badger.gui.default.windows.message_dialog import BadgerScrollableMessageBox
from badger.gui.default.utils import ModalOverlay

import logging

logger = logging.getLogger(__name__)

stylesheet = """
QPushButton:hover:pressed
{
Expand Down Expand Up @@ -121,11 +125,13 @@ def init_ui(self):
vbox_table = QVBoxLayout(panel_table)
vbox_table.setContentsMargins(0, 0, 0, 0)
title_label = QLabel("Run Data")
title_label.setStyleSheet("""
title_label.setStyleSheet(
"""
background-color: #455364;
font-weight: bold;
padding: 4px;
""")
"""
)
title_label.setAlignment(Qt.AlignCenter) # Center-align the title
vbox_table.addWidget(title_label, 0)
self.run_table = run_table = data_table()
Expand Down Expand Up @@ -292,6 +298,8 @@ def go_run(self, i: int = None):
self.routine_editor.set_routine(routine, silent=True)
self.status_bar.set_summary(f"Current routine: {self.current_routine.name}")

self.run_monitor.update_analysis_extensions()

def inspect_solution(self, idx):
self.run_table.selectRow(idx)

Expand Down
1 change: 0 additions & 1 deletion src/badger/gui/default/components/run_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ def init_plots(self, routine: Routine = None, run_filename: str = None):
return

self.update_curves()
self.update_analysis_extensions()

self.sig_toggle_other.emit(False)

Expand Down

0 comments on commit 627af67

Please sign in to comment.