Wizard: do not allow choosing build system if corresponding IJ plugin is disabled

#KT-38061 fixed
This commit is contained in:
Ilya Kirillov
2020-04-06 20:55:24 +03:00
parent a6af27d852
commit 4db1934cfd
@@ -39,7 +39,9 @@ class BuildSystemTypeSettingComponent(
context
), Disposable {
override val forceLabelCenteringOffset: Int? = 2
private val buttons = setting.type.values.map(::BuildSystemChooseButton)
private val buttons by lazy(LazyThreadSafetyMode.NONE) {
read { setting.type.values.filter { setting.type.filter(this, reference, it) }.map(::BuildSystemChooseButton) }
}
override val component = panel {
row {
buttons.forEach { button -> button(growX) }