Commit 3f55412
committed
The stop button was remaining visible (and input fields hidden) after a stop operation. This was because
The UI logic in `PhotoReasoningScreen.kt` shows the input fields and hides the stop button only when `uiState` is not `Loading` AND `commandExecutionStatus` is empty.
This commit changes `onStopClicked()` in `PhotoReasoningViewModel.kt` to set `_commandExecutionStatus.value = ""` (an empty string). This, combined with `_uiState.value` being set to `Success`, now correctly fulfills the conditions in the UI to hide the stop button and re-display the text input and send button, allowing you to make new requests.commandExecutionStatus was being set to "Stopped." in onStopClicked(), which is not an empty string.1 parent e2598a2 commit 3f55412
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments