Fixed "stage" and "unstage" not showing an error if failed
This commit is contained in:
parent
4c6b45537b
commit
fd98fcfd05
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue