mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Refresh index and status after opening repo
Previously this relied on an initial window focus event firing to kick off the initial load. This focus event no longer fires in jquery 2.0 so just explicitly refresh the index and status when setting the project path.
This commit is contained in:
@@ -118,7 +118,9 @@ class Project
|
||||
if projectPath?
|
||||
directory = if fsUtils.isDirectorySync(projectPath) then projectPath else path.dirname(projectPath)
|
||||
@rootDirectory = new Directory(directory)
|
||||
@repo = Git.open(projectPath, project: this)
|
||||
if @repo = Git.open(projectPath, project: this)
|
||||
@repo.refreshIndex()
|
||||
@repo.refreshStatus()
|
||||
else
|
||||
@rootDirectory = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user