mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Reset Workspace before Project
Otherwise some paths will be leaked.
This commit is contained in:
@@ -49,8 +49,7 @@ class Workspace extends Model
|
||||
bottom: new PanelContainer({location: 'bottom'})
|
||||
modal: new PanelContainer({location: 'modal'})
|
||||
|
||||
@subscribeToActiveItem()
|
||||
@subscribeToFontSize()
|
||||
@subscribeToEvents()
|
||||
|
||||
reset: (@packageManager) ->
|
||||
@emitter.dispose()
|
||||
@@ -74,6 +73,7 @@ class Workspace extends Model
|
||||
@destroyedItemURIs = []
|
||||
@consumeServices(@packageManager)
|
||||
|
||||
subscribeToEvents: ->
|
||||
@subscribeToActiveItem()
|
||||
@subscribeToFontSize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user