   showSaveDialogSync: (defaultPath) ->
     defaultPath ?= @project?.getPath()
     currentWindow = @getCurrentWindow()
+    dialog = remote.require('dialog')
     dialog.showSaveDialog currentWindow, {title: 'Save File', defaultPath}
 
   # Public: Open the dev tools for the current window.

remote = require 'remote'
screen = require 'screen'
shell = require 'shell'
dialog = remote.require 'dialog'
app = remote.require 'app'

_ = require 'underscore-plus'
{Model} = require 'theorist'

    @getCurrentWindow().close()

  # Private:
  exit: (status) ->
    app = remote.require('app')
    app.exit(status)

  # Public: Is the current window in development mode?
  inDevMode: ->
