mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 01:54:17 +02:00
Merge pull request #4436 from eatkins/unload-view
Close the current global file tree view on unload
This commit is contained in:
@@ -883,7 +883,7 @@ object BuiltinCommands {
|
||||
val (_, config: FileTreeViewConfig) = extracted.runTask(Keys.fileTreeViewConfig, s)
|
||||
val view: FileTreeDataView[StampedFile] = config.newDataView()
|
||||
val newState = s.addExitHook {
|
||||
view.close()
|
||||
s.get(BasicKeys.globalFileTreeView).foreach(_.close())
|
||||
s.attributes.remove(BasicKeys.globalFileTreeView)
|
||||
()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user