Example #1
0
    def handle_load_thread_finished(self):
        self._load_thread.deleteLater()
        self._load_thread = None

        if not self.thread_success:
            self.run_list = flatten_run_list(self._model.current_runs)
        self.on_loading_finished()
Example #2
0
 def handle_load_no_threading(self, filenames, finished_callback):
     self.on_loading_start()
     self._model.loadData(filenames)
     try:
         self._model.execute()
     except ValueError as error:
         self._view.warning_popup(error.args[0])
         self.run_list = flatten_run_list(self._model.current_runs)
     finished_callback()