diff --git a/src/main/kotlin/app/viewmodels/MenuViewModel.kt b/src/main/kotlin/app/viewmodels/MenuViewModel.kt index d54cf0f..c21fdfe 100644 --- a/src/main/kotlin/app/viewmodels/MenuViewModel.kt +++ b/src/main/kotlin/app/viewmodels/MenuViewModel.kt @@ -40,6 +40,7 @@ class MenuViewModel @Inject constructor( fun popStash() = tabState.safeProcessing( refreshType = RefreshType.UNCOMMITED_CHANGES_AND_LOG, + refreshEvenIfCrashes = true, ) { git -> stashManager.popStash(git) } diff --git a/src/main/kotlin/app/viewmodels/StashesViewModel.kt b/src/main/kotlin/app/viewmodels/StashesViewModel.kt index ab1a4d7..a35de80 100644 --- a/src/main/kotlin/app/viewmodels/StashesViewModel.kt +++ b/src/main/kotlin/app/viewmodels/StashesViewModel.kt @@ -30,12 +30,14 @@ class StashesViewModel @Inject constructor( fun applyStash(stashInfo: RevCommit) = tabState.safeProcessing( refreshType = RefreshType.UNCOMMITED_CHANGES_AND_LOG, + refreshEvenIfCrashes = true, ) { git -> stashManager.applyStash(git, stashInfo) } fun popStash(stash: RevCommit) = tabState.safeProcessing( refreshType = RefreshType.UNCOMMITED_CHANGES_AND_LOG, + refreshEvenIfCrashes = true, ) { git -> stashManager.popStash(git, stash)