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) { closeFile (name) {
delete this.openedFiles[name] delete this.openedFiles[name]
if (!Object.keys(this.openedFiles).length) { if (!Object.keys(this.openedFiles).length) {
this.editor.displayEmptyReadOnlySession()
this._deps.config.set('currentFile', '') this._deps.config.set('currentFile', '')
this.events.emit('noFileSelected') this.events.emit('noFileSelected')
} }

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

Loading…
Cancel
Save