diff --git a/src/aiidalab_qe/app/result/__init__.py b/src/aiidalab_qe/app/result/__init__.py index eabe8469d..e317418b5 100644 --- a/src/aiidalab_qe/app/result/__init__.py +++ b/src/aiidalab_qe/app/result/__init__.py @@ -81,8 +81,8 @@ def _render(self): self.panels = { "Summary": self.summary_panel, - "Results": self.results_panel, "Status": self.status_panel, + "Results": self.results_panel, } self.toggle_controls = ipw.ToggleButtons( @@ -118,7 +118,11 @@ def _post_render(self): self._update_kill_button_layout() self._update_clean_scratch_button_layout() - self.toggle_controls.value = "Summary" + self.toggle_controls.value = ( + "Results" + if (process := self._model.fetch_process_node()) and process.is_finished + else "Status" + ) self.process_monitor = ProcessMonitor( timeout=0.5,