From fd98fcfd053427c5ba7be5156ec666e56b09d2cc Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Fri, 9 Sep 2022 22:26:48 +0200 Subject: [PATCH] Fixed "stage" and "unstage" not showing an error if failed --- src/main/kotlin/app/viewmodels/StatusViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/app/viewmodels/StatusViewModel.kt b/src/main/kotlin/app/viewmodels/StatusViewModel.kt index e086cc0..b446ef4 100644 --- a/src/main/kotlin/app/viewmodels/StatusViewModel.kt +++ b/src/main/kotlin/app/viewmodels/StatusViewModel.kt @@ -79,12 +79,14 @@ class StatusViewModel @Inject constructor( fun stage(statusEntry: StatusEntry) = tabState.runOperation( refreshType = RefreshType.UNCOMMITED_CHANGES, + showError = true, ) { git -> stageEntryUseCase(git, statusEntry) } fun unstage(statusEntry: StatusEntry) = tabState.runOperation( refreshType = RefreshType.UNCOMMITED_CHANGES, + showError = true, ) { git -> unstageEntryUseCase(git, statusEntry) }