Skip to content

Commit 04a30ea

Browse files
committed
Fixup new project wizard for 2022.3
1 parent 92bf71d commit 04a30ea

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/main/kotlin/platform/architectury/creator/ui-steps.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import com.intellij.openapi.ui.ComboBox
3939
import com.intellij.openapi.util.Key
4040
import com.intellij.ui.JBColor
4141
import com.intellij.ui.dsl.builder.Cell
42-
import com.intellij.ui.dsl.builder.EMPTY_LABEL
4342
import com.intellij.ui.dsl.builder.Row
4443
import com.intellij.ui.dsl.builder.bindSelected
4544
import com.intellij.ui.dsl.builder.bindText
@@ -136,12 +135,12 @@ class ArchitecturyVersionChainStep(
136135
FABRIC_API_VERSION -> {
137136
val comboBox = super.createComboBox(row, index, items).bindEnabled(useFabricApiProperty)
138137
row.checkBox("Use Fabric API").bindSelected(useFabricApiProperty)
139-
row.label(EMPTY_LABEL).bindText(
138+
row.label("").bindText(
140139
getVersionProperty(MINECRAFT_VERSION).transform { mcVersion ->
141140
val versionStr = mcVersion.toString()
142141
val matched = versionData.fabricApiVersions.versions.any { versionStr in it.gameVersions }
143142
if (matched) {
144-
EMPTY_LABEL
143+
""
145144
} else {
146145
"Unable to match API versions to Minecraft version"
147146
}

src/main/kotlin/platform/fabric/creator/ui-steps.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import com.intellij.openapi.ui.ComboBox
4040
import com.intellij.openapi.util.Key
4141
import com.intellij.ui.JBColor
4242
import com.intellij.ui.dsl.builder.Cell
43-
import com.intellij.ui.dsl.builder.EMPTY_LABEL
4443
import com.intellij.ui.dsl.builder.Panel
4544
import com.intellij.ui.dsl.builder.Row
4645
import com.intellij.ui.dsl.builder.bindItem
@@ -126,12 +125,12 @@ class FabricVersionChainStep(
126125
}
127126
YARN_VERSION -> {
128127
val comboBox = super.createComboBox(row, index, items)
129-
row.label(EMPTY_LABEL).bindText(
128+
row.label("").bindText(
130129
getVersionProperty(MINECRAFT_VERSION).transform { mcVersion ->
131130
mcVersion as FabricMcVersion
132131
val matched = fabricVersions.mappings.any { it.gameVersion == mcVersion.version }
133132
if (matched) {
134-
EMPTY_LABEL
133+
""
135134
} else {
136135
"Unable to match Yarn versions to Minecraft version"
137136
}
@@ -142,12 +141,12 @@ class FabricVersionChainStep(
142141
API_VERSION -> {
143142
val comboBox = super.createComboBox(row, index, items).bindEnabled(useApiProperty)
144143
row.checkBox("Use Fabric API").bindSelected(useApiProperty)
145-
row.label(EMPTY_LABEL).bindText(
144+
row.label("").bindText(
146145
getVersionProperty(MINECRAFT_VERSION).transform { mcVersion ->
147146
mcVersion as FabricMcVersion
148147
val matched = apiVersions.versions.any { mcVersion.version in it.gameVersions }
149148
if (matched) {
150-
EMPTY_LABEL
149+
""
151150
} else {
152151
"Unable to match API versions to Minecraft version"
153152
}

0 commit comments

Comments
 (0)