Ejemplo n.º 1
0
def worktree_browser_widget(parent, update=True, settings=None):
    """Return a widget for immediate use."""
    view = Browser(parent, update=update, settings=settings)
    view.tree.setModel(GitRepoModel(view.tree))
    view.ctl = BrowserController(view.tree)
    if update:
        view.tree.refresh()
    return view
Ejemplo n.º 2
0
def worktree_browser_widget(parent, update=True):
    """Return a widget for immediate use."""
    view = Browser(parent, update=update)
    view.tree.setModel(GitRepoModel(view.tree))
    view.ctl = BrowserController(view.tree)
    return view