💄 Add getCurrentWindow() helper

This commit is contained in:
Kevin Sawicki
2013-09-26 08:33:22 -07:00
parent 7f4ccf6a42
commit 3f5875e5db

View File

@@ -21,12 +21,12 @@ class Atom
@themes = new ThemeManager()
@contextMenu = new ContextMenuManager(@getLoadSettings().devMode)
getLoadSettings: ->
@getCurrentWindow().loadSettings
getCurrentWindow: ->
remote.getCurrentWindow()
getLoadSettings: ->
@getCurrentWindow().loadSettings
#TODO Remove theses once packages have been migrated
getPackageState: (args...) -> @packages.getPackageState(args...)
setPackageState: (args...) -> @packages.setPackageState(args...)
@@ -109,8 +109,7 @@ class Atom
close: ->
@getCurrentWindow().close()
exit: (status) ->
app.exit(status)
exit: (status) -> app.exit(status)
toggleFullScreen: ->
@setFullScreen(!@isFullScreen())