Enable "Configure Kotlin plugin updates" with no open project
#KT-20380 Fixed
This commit is contained in:
@@ -30,12 +30,11 @@ import javax.swing.JComponent
|
|||||||
|
|
||||||
class ConfigurePluginUpdatesAction : DumbAwareAction() {
|
class ConfigurePluginUpdatesAction : DumbAwareAction() {
|
||||||
override fun actionPerformed(e: AnActionEvent) {
|
override fun actionPerformed(e: AnActionEvent) {
|
||||||
val project = e.project ?: return
|
ConfigurePluginUpdatesDialog(e.project).show()
|
||||||
ConfigurePluginUpdatesDialog(project).show()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ConfigurePluginUpdatesDialog(project: Project) : DialogWrapper(project, false) {
|
class ConfigurePluginUpdatesDialog(project: Project?) : DialogWrapper(project, false) {
|
||||||
private val form = ConfigurePluginUpdatesForm()
|
private val form = ConfigurePluginUpdatesForm()
|
||||||
private val initialSelectedChannel: Int
|
private val initialSelectedChannel: Int
|
||||||
private var update: PluginUpdateStatus.Update? = null
|
private var update: PluginUpdateStatus.Update? = null
|
||||||
|
|||||||
Reference in New Issue
Block a user