waits for the script to emit the script_finshed signal

def script_finished(self):
        """
        waits for the script to emit the script_finshed signal
        """
        script = self.current_script
        script.updateProgress.disconnect(self.update_status)
        self.script_thread.started.disconnect()
        script.finished.disconnect()

        self.current_script = None

        self.plot_script(script)
        self.progressBar.setValue(100)
        self.btn_start_script.setEnabled(True)
        self.btn_skip_subscript.setEnabled(False)