Skip to content

Commit 581c6aa

Browse files
Enable Both slot Flash options (Add Inactive slot flash warning) : Try 14
1 parent a76e596 commit 581c6aa

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
@@ -71,7 +71,7 @@ class SlotViewModel(
7171
val flashOutput: List<String>
7272
get() = _flashOutput
7373
val uiPrintedOutput: List<String>
74-
get() = _flashOutput.filter { it.startsWith("ui_print") }.map { it.substringAfter("ui_print").trim() }.filter { it.isNotEmpty() }
74+
get() = _flashOutput.filter { it.startsWith("ui_print") }.map { it.substringAfter("ui_print").trim() }.filter { it.isNotEmpty() || it == "" }
7575
val wasFlashSuccess: Boolean?
7676
get() = _wasFlashSuccess.value
7777
val backupPartitions: MutableMap<String, Boolean>
@@ -176,7 +176,7 @@ class SlotViewModel(
176176
private fun uiPrint(message: String) {
177177
viewModelScope.launch(Dispatchers.Main) {
178178
_flashOutput.add("ui_print $message")
179-
_flashOutput.add("ui_print")
179+
// _flashOutput.add("ui_print")
180180
}
181181
}
182182

0 commit comments

Comments
 (0)