This commit is contained in:
stereobooster
2016-10-10 10:47:50 +03:00
parent 63b9c8eb4b
commit 940f92bfd3

View File

@@ -879,7 +879,7 @@ class TextEditor extends Model
# Determine whether the user should be prompted to save before closing
# this editor.
shouldPromptToSave: ({windowCloseRequested, projectHasPaths}={}) ->
if windowCloseRequested && projectHasPaths
if windowCloseRequested and projectHasPaths
false
else
@isModified() and not @buffer.hasMultipleEditors()