Merge pull request #712 from desktop/below-the-fold

Close the foldout after selecting a repository
This commit is contained in:
Markus Olsson 2016-12-05 08:27:51 +01:00 committed by GitHub
commit 69784deb0a

View file

@ -673,6 +673,7 @@ export class App extends React.Component<IAppProps, IAppState> {
private onSelectionChanged = (repository: Repository | CloningRepository) => {
this.props.dispatcher.selectRepository(repository)
this.props.dispatcher.closeFoldout()
if (repository instanceof Repository) {
this.props.dispatcher.refreshGitHubRepositoryInfo(repository)