override fun actionPerformed()

in src/main/kotlin/mobi/hsz/idea/gitignore/ui/GeneratorDialog.kt [334:349]


                    override fun actionPerformed(e: AnActionEvent) {
                        currentNode?.template?.let {
                            it.isStarred = !it.isStarred

                            val name = it.file?.path ?: it.name
                            if (it.isStarred) {
                                starred.add(name)
                            } else {
                                starred.remove(name)
                                // backward compatibility for a starredTemplates list composed of regular names instead of paths
                                starred.remove(it.name)
                            }
                            settings.starredTemplates = starred.toList()
                            refreshTree()
                        }
                    }