mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
More cleanup
This commit is contained in:
@@ -416,7 +416,7 @@ class Pane extends Model
|
||||
return true unless typeof item.getUri is 'function' and item.shouldPromptToSave?()
|
||||
|
||||
chosen = atom.confirm
|
||||
message: "'#{item.getTitle?() ? item.getUri?()}' has changes, do you want to save them?"
|
||||
message: "'#{item.getTitle?() ? item.getUri()}' has changes, do you want to save them?"
|
||||
detailedMessage: "Your changes will be lost if you close this item without saving."
|
||||
buttons: ["Save", "Cancel", "Don't Save"]
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ window.atom.loadTime = Date.now() - startTime
|
||||
console.log "Window load time: #{atom.getWindowLoadTime()}ms"
|
||||
|
||||
# Workaround for focus getting cleared upon window creation
|
||||
windowFocused = (e) ->
|
||||
windowFocused = ->
|
||||
window.removeEventListener('focus', windowFocused)
|
||||
setTimeout (-> document.querySelector('.workspace').focus()), 0
|
||||
window.addEventListener('focus', windowFocused)
|
||||
|
||||
Reference in New Issue
Block a user