def METHOD_NAME(self):
    if self.is_finished:
        return
    self.current += 1
    if self.is_finished:
        self.ui.progress.setValue(100)
    else:
        self.ui.progress.setValue(0)
        self._add_pending()