Enable "Configure Kotlin plugin updates" with no open project

#KT-20380 Fixed
This commit is contained in:
Dmitry Jemerov
2017-12-18 19:00:08 +01:00
parent 1a9d2ab4ee
commit 6d63dd9d83
@@ -30,12 +30,11 @@ import javax.swing.JComponent
class ConfigurePluginUpdatesAction : DumbAwareAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return
ConfigurePluginUpdatesDialog(project).show()
ConfigurePluginUpdatesDialog(e.project).show()
}
}
class ConfigurePluginUpdatesDialog(project: Project) : DialogWrapper(project, false) {
class ConfigurePluginUpdatesDialog(project: Project?) : DialogWrapper(project, false) {
private val form = ConfigurePluginUpdatesForm()
private val initialSelectedChannel: Int
private var update: PluginUpdateStatus.Update? = null