mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Prompt to save when unloading if editor is in conflict
This commit is contained in:
@@ -961,7 +961,7 @@ class TextEditor extends Model
|
||||
# this editor.
|
||||
shouldPromptToSave: ({windowCloseRequested, projectHasPaths}={}) ->
|
||||
if windowCloseRequested and projectHasPaths and atom.stateStore.isConnected()
|
||||
false
|
||||
@buffer.isInConflict()
|
||||
else
|
||||
@isModified() and not @buffer.hasMultipleEditors()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user