Auto-commit after successful build: update app gameplay/UI

Changed files:\napp/src/main/java/com/kawomi/githugandroid/GitHugApp.kt
This commit is contained in:
Joe Tretter
2026-04-22 08:44:10 -05:00
parent 0736c54a38
commit abf042ae65

View File

@@ -153,6 +153,8 @@ fun GitHugApp() {
val raw = commandInput.text.trim() val raw = commandInput.text.trim()
if (raw.isBlank()) return if (raw.isBlank()) return
commandInput = TextFieldValue("")
if (commandHistory.lastOrNull() != raw) { if (commandHistory.lastOrNull() != raw) {
commandHistory = commandHistory + raw commandHistory = commandHistory + raw
} }
@@ -189,7 +191,6 @@ fun GitHugApp() {
} else { } else {
repo = newRepo repo = newRepo
output = newOutput output = newOutput
commandInput = TextFieldValue("")
} }
} }
@@ -421,7 +422,7 @@ private fun SpecialKeyBar(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.spacedBy(8.dp) horizontalArrangement = Arrangement.spacedBy(8.dp)
) { ) {
TerminalKeyButton(label = "TAB", onClick = onTab, modifier = Modifier.weight(1.3f)) TerminalKeyButton(label = "", onClick = onTab, modifier = Modifier.weight(1.3f))
TerminalKeyButton(label = "", onClick = onCursorLeft) TerminalKeyButton(label = "", onClick = onCursorLeft)
TerminalKeyButton(label = "", onClick = onCursorRight) TerminalKeyButton(label = "", onClick = onCursorRight)
TerminalKeyButton(label = "", onClick = onHistoryUp) TerminalKeyButton(label = "", onClick = onHistoryUp)