def _check_redraw(view: View, defx: Defx, context: Context) -> None: root = defx.get_root_candidate()['action__path'] if not root.exists(): return mtime = root.stat().st_mtime if mtime != defx._mtime: view.redraw(True)
def _check_redraw(view: View, defx: Defx, context: Context) -> None: root = defx.get_root_candidate() mtime = root['action__path'].stat().st_mtime if mtime != defx._mtime: view.redraw(True)