         error_list.push(error)
       @setItems(error_list)
 
-      @focusFilterEditor()
+    @focusFilterEditor()
 
   hide: ->
     @panel?.hide()


    @storeFocusedElement()

    if @previouslyFocusedElement[0] and @previouslyFocusedElement[0] isnt document.body
      @eventElement = @previouslyFocusedElement[0]
    else
      @eventElement = atom.views.getView(atom.workspace)
    @keyBindings = atom.keymap.findKeyBindings(target: @eventElement)

    @setLoading('Running Flake8 Linter...')

    # atom.workspaceView.append(this)
    # @focusFilterEditor()
    filePath = editor.getPath()

    flake filePath, (errors) =>

    else
      @attach()

  show: ->
    # Get out of here unless this is a python file
    editor = atom.workspace.getActiveEditor()
    return unless editor?
    return unless editor.getGrammar().name == 'Python'


    @panel ?= atom.workspace.addModalPanel(item: this)
