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()
Main update routine using threading to get targets and/or previews
dataset/ETHPy150Open mikar/demimove/demimove/gui.py/DemiMoveGUI.update