From b6c3d7dad3f7449a889a496ff1dfe5212249102a Mon Sep 17 00:00:00 2001 From: guyskk Date: Sun, 6 Nov 2016 14:56:46 +0000 Subject: [PATCH] fix #585: Add option to disable the loading notification --- src/beautify.coffee | 7 ++++--- src/config.coffee | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/beautify.coffee b/src/beautify.coffee index c188d20..0a6afd6 100644 --- a/src/beautify.coffee +++ b/src/beautify.coffee @@ -56,9 +56,10 @@ setCursors = (editor, posArray) -> # Show beautification progress/loading view beautifier.on('beautify::start', -> - LoadingView ?= require "./views/loading-view" - loadingView ?= new LoadingView() - loadingView.show() + if atom.config.get("atom-beautify.general.showLoadingView") + LoadingView ?= require "./views/loading-view" + loadingView ?= new LoadingView() + loadingView.show() ) beautifier.on('beautify::end', -> loadingView?.hide() diff --git a/src/config.coffee b/src/config.coffee index 6d3a80d..5c6ceaf 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -42,4 +42,9 @@ module.exports = { type : 'boolean' default : false 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" }