mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
fix for different projects being open in different windows
This commit is contained in:
@@ -16,8 +16,10 @@ class Project extends Pane
|
||||
'Command-Ctrl-N': 'toggle'
|
||||
|
||||
initialize: ->
|
||||
activeWindow.document.ace.on 'open', =>
|
||||
@reload() if @dir? and File.workingDirectory() isnt @dir
|
||||
@dir = File.workingDirectory()
|
||||
|
||||
activeWindow.document.ace.on 'open', ({filename}) =>
|
||||
@reload() if File.isDirectory filename
|
||||
|
||||
$('#project li').live 'click', (event) =>
|
||||
$('#project .active').removeClass 'active'
|
||||
|
||||
Reference in New Issue
Block a user