def update(self, mode=1):
        # Modes: 0 = targets, 1 = previews, 2 = both.
        self.fileops.stopupdate = False
        if not self.autopreview or not self.cwd:
            self.update_view()
            return
        self.updatethread.mode = mode
        self.updatethread.start()
``RegistrationProfile.send_activation_email`` sends an
dataset/ETHPy150Open mikar/demimove/demimove/gui.py/DemiMoveGUI.update--crossover with--dataset/ETHPy150Open macropin/django-registration/registration/tests/models.py/RegistrationModelTests.test_activation_email_uses_registration_default_from_email