Skip to content

Commit

Permalink
browser, dashboard: fix restore scrollbar state
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRenblad authored and sbourdeauducq committed Mar 20, 2024
1 parent 2542775 commit db79100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artiq/browser/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ async def _recompute_arguments(self, overrides={}):
state = self.argeditor.save_state()
self.argeditor.deleteLater()
self.argeditor = _ArgumentEditor(self)
self.argeditor.restore_state(state)
self.layout.addWidget(self.argeditor, 0, 0, 1, 5)
self.argeditor.restore_state(state)

async def load_hdf5_task(self, filename=None):
if filename is None:
Expand Down
2 changes: 1 addition & 1 deletion artiq/dashboard/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ async def _recompute_arguments_task(self, overrides=dict()):

editor_class = self.manager.get_argument_editor_class(self.expurl)
self.argeditor = editor_class(self.manager, self, self.expurl)
self.argeditor.restore_state(argeditor_state)
self.layout.addWidget(self.argeditor, 0, 0, 1, 5)
self.argeditor.restore_state(argeditor_state)

def contextMenuEvent(self, event):
menu = QtWidgets.QMenu(self)
Expand Down

0 comments on commit db79100

Please sign in to comment.