Skip to content

Commit 9916b5a

Browse files
committed
Enable Both slot Flash options (Add Inactive slot flash warning) : Try 8
1 parent 932eeb0 commit 9916b5a

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot

1 file changed

+2
-2
lines changed

app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot/SlotViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ class SlotViewModel(
185185

186186
@Suppress("SameParameterValue")
187187
private fun uiPrint(message: String) {
188-
viewModelScope.launch(Dispatchers.Main) {
188+
withContext (Dispatchers.Main) {
189189
_flashOutput.add("ui_print $message")
190190
// _flashOutput.add("ui_print")
191191
}
192192
}
193193

194194
// TODO: use base class for common functions
195195
private fun addMessage(message: String) {
196-
viewModelScope.launch(Dispatchers.Main) {
196+
withContext (Dispatchers.Main) {
197197
_flashOutput.add(message)
198198
}
199199
}

0 commit comments

Comments
 (0)