gradle.kts postponed loading: hide notifaction right after click on action

This commit is contained in:
Sergey Rostov
2020-06-15 14:37:42 +03:00
parent ace7ae19b4
commit 631e68c99a
@@ -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)