fix #585: Add option to disable the loading notification
This commit is contained in:
parent
55dad2903e
commit
b6c3d7dad3
|
@ -56,9 +56,10 @@ setCursors = (editor, posArray) ->
|
||||||
|
|
||||||
# Show beautification progress/loading view
|
# Show beautification progress/loading view
|
||||||
beautifier.on('beautify::start', ->
|
beautifier.on('beautify::start', ->
|
||||||
LoadingView ?= require "./views/loading-view"
|
if atom.config.get("atom-beautify.general.showLoadingView")
|
||||||
loadingView ?= new LoadingView()
|
LoadingView ?= require "./views/loading-view"
|
||||||
loadingView.show()
|
loadingView ?= new LoadingView()
|
||||||
|
loadingView.show()
|
||||||
)
|
)
|
||||||
beautifier.on('beautify::end', ->
|
beautifier.on('beautify::end', ->
|
||||||
loadingView?.hide()
|
loadingView?.hide()
|
||||||
|
|
|
@ -42,4 +42,9 @@ module.exports = {
|
||||||
type : 'boolean'
|
type : 'boolean'
|
||||||
default : false
|
default : false
|
||||||
description : "Do not show any/all errors when they occur"
|
description : "Do not show any/all errors when they occur"
|
||||||
|
showLoadingView :
|
||||||
|
title: "Show Loading View"
|
||||||
|
type : 'boolean'
|
||||||
|
default : true
|
||||||
|
description : "Show loading view when beautifying"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue