mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Only beep when there is a workspace
Some specs might not create one.
This commit is contained in:
@@ -604,7 +604,7 @@ class Atom extends Model
|
||||
# Essential: Visually and audibly trigger a beep.
|
||||
beep: ->
|
||||
shell.beep() if @config.get('core.audioBeep')
|
||||
@__workspaceView.trigger 'beep'
|
||||
@__workspaceView?.trigger 'beep'
|
||||
@emitter.emit 'did-beep'
|
||||
|
||||
# Essential: A flexible way to open a dialog akin to an alert dialog.
|
||||
|
||||
Reference in New Issue
Block a user