remove displayEmptyReadOnlySession from closeFile

fixed standard
pull/1/head
LianaHus 5 years ago
parent e43adaba59
commit be59996a40
  1. 1
      src/app/files/fileManager.js
  2. 2
      src/app/panels/tab-proxy.js

@ -103,7 +103,6 @@ class FileManager extends Plugin {
closeFile (name) {
delete this.openedFiles[name]
if (!Object.keys(this.openedFiles).length) {
this.editor.displayEmptyReadOnlySession()
this._deps.config.set('currentFile', '')
this.events.emit('noFileSelected')
}

@ -140,7 +140,7 @@ export class TabProxy {
removeTab (name) {
this._view.filetabs.removeTab(name)
delete this._handlers[name]
this.switchToActiveTab ()
this.switchToActiveTab()
}
addHandler (type, fn) {

Loading…
Cancel
Save