Fix issue #1
Now tree view will hide when there are no TextEditor.