Skip to content

Commit cdea7af

Browse files
authored
fix(ModuleList): fix sameLine being invoked with Show Keybin off
1 parent 28d6811 commit cdea7af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/com/lambda/module/hud/ModuleList.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ object ModuleList : HudModule(
4040
.filter { it.isVisible }
4141

4242
enabled.forEach {
43-
text(it.name); sameLine()
43+
text(it.name)
4444

4545
if (showKeybind) {
4646
val color = if (it.keybind.key == 0 && it.keybind.mouse == -1) Color.RED else Color.GREEN
47+
48+
sameLine()
4749
withStyleColor(ImGuiCol.Text, color) { text(" [${it.keybind.name}]") }
4850
}
4951
}

0 commit comments

Comments
 (0)