mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
@@ -297,8 +297,8 @@ class Atom
|
||||
process.crash()
|
||||
|
||||
beep: ->
|
||||
@audioBeep()
|
||||
@visualBeep()
|
||||
@audioBeep() if @config.get('core.audioBeep')
|
||||
@visualBeep() if @config.get('core.visualBeep')
|
||||
|
||||
audioBeep: ->
|
||||
shell.beep()
|
||||
@@ -306,7 +306,7 @@ class Atom
|
||||
visualBeep: ->
|
||||
overlay = $$ -> @div class: 'visual-beep'
|
||||
$('body').append overlay
|
||||
setTimeout((-> overlay.remove()), 1000)
|
||||
setTimeout((-> overlay.remove()), 300)
|
||||
|
||||
requireUserInitScript: ->
|
||||
userInitScriptPath = path.join(@config.configDirPath, "user.coffee")
|
||||
|
||||
@@ -50,6 +50,8 @@ class RootView extends View
|
||||
disabledPackages: []
|
||||
themes: ['atom-dark-ui', 'atom-dark-syntax']
|
||||
projectHome: path.join(atom.getHomeDirPath(), 'github')
|
||||
audioBeep: true
|
||||
visualBeep: false
|
||||
|
||||
@acceptsDocuments: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user