gradle.kts postponed loading: hide notifaction right after click on action
This commit is contained in:
+2
@@ -95,10 +95,12 @@ object LoadScriptConfigurationNotificationFactory {
|
|||||||
setText(KotlinIdeaCoreBundle.message("notification.text.script.configuration.has.been.changed"))
|
setText(KotlinIdeaCoreBundle.message("notification.text.script.configuration.has.been.changed"))
|
||||||
createComponentActionLabel(KotlinIdeaCoreBundle.message("notification.action.text.load.script.configuration")) {
|
createComponentActionLabel(KotlinIdeaCoreBundle.message("notification.action.text.load.script.configuration")) {
|
||||||
onClick()
|
onClick()
|
||||||
|
file.removeLoadConfigurationNotificationPanel(project)
|
||||||
}
|
}
|
||||||
|
|
||||||
createComponentActionLabel(KotlinIdeaCoreBundle.message("notification.action.text.enable.auto.reload")) {
|
createComponentActionLabel(KotlinIdeaCoreBundle.message("notification.action.text.enable.auto.reload")) {
|
||||||
onClick()
|
onClick()
|
||||||
|
file.removeLoadConfigurationNotificationPanel(project)
|
||||||
|
|
||||||
val scriptDefinition = file.findScriptDefinition(project) ?: return@createComponentActionLabel
|
val scriptDefinition = file.findScriptDefinition(project) ?: return@createComponentActionLabel
|
||||||
KotlinScriptingSettings.getInstance(project).setAutoReloadConfigurations(scriptDefinition, true)
|
KotlinScriptingSettings.getInstance(project).setAutoReloadConfigurations(scriptDefinition, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user