From 631e68c99a803781a1e4eaeceb94367b8db6c483 Mon Sep 17 00:00:00 2001 From: Sergey Rostov Date: Mon, 15 Jun 2020 14:37:42 +0300 Subject: [PATCH] gradle.kts postponed loading: hide notifaction right after click on action --- .../core/script/LoadScriptConfigurationNotificationFactory.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/LoadScriptConfigurationNotificationFactory.kt b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/LoadScriptConfigurationNotificationFactory.kt index 4c9a5901694..aa0984f54e4 100644 --- a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/LoadScriptConfigurationNotificationFactory.kt +++ b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/LoadScriptConfigurationNotificationFactory.kt @@ -95,10 +95,12 @@ object LoadScriptConfigurationNotificationFactory { setText(KotlinIdeaCoreBundle.message("notification.text.script.configuration.has.been.changed")) createComponentActionLabel(KotlinIdeaCoreBundle.message("notification.action.text.load.script.configuration")) { onClick() + file.removeLoadConfigurationNotificationPanel(project) } createComponentActionLabel(KotlinIdeaCoreBundle.message("notification.action.text.enable.auto.reload")) { onClick() + file.removeLoadConfigurationNotificationPanel(project) val scriptDefinition = file.findScriptDefinition(project) ?: return@createComponentActionLabel KotlinScriptingSettings.getInstance(project).setAutoReloadConfigurations(scriptDefinition, true)