Scripts: show notification only when compilation configuration is changed

This commit is contained in:
Natalia Selezneva
2019-06-19 12:49:38 +03:00
parent fa2b9b11d6
commit 08e599ea5b
@@ -48,7 +48,10 @@ abstract class ScriptDependenciesLoader(protected val project: Project) {
}
if (oldResult != result) {
if (shouldShowNotification() && !ApplicationManager.getApplication().isUnitTestMode) {
if (shouldShowNotification()
&& oldResult.valueOrNull() != result.valueOrNull() // Only compilation configuration changed
&& !ApplicationManager.getApplication().isUnitTestMode
) {
debug(file) {
"dependencies changed, notification is shown: old = $oldResult, new = $result"
}