Fixed stashes list not being updated when stashing/drop stashes
This commit is contained in:
parent
6d2fadb437
commit
2162191fe0
@ -10,7 +10,6 @@ import com.jetpackduba.gitnuro.ui.SelectedItem
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.filter
|
||||
import kotlinx.coroutines.launch
|
||||
import org.eclipse.jgit.api.Git
|
||||
import org.eclipse.jgit.revwalk.RevCommit
|
||||
@ -31,8 +30,11 @@ class StashesViewModel @Inject constructor(
|
||||
|
||||
init {
|
||||
tabScope.launch {
|
||||
tabState.refreshFlowFiltered(RefreshType.ALL_DATA, RefreshType.STASHES)
|
||||
{
|
||||
tabState.refreshFlowFiltered(
|
||||
RefreshType.ALL_DATA,
|
||||
RefreshType.STASHES,
|
||||
RefreshType.UNCOMMITED_CHANGES_AND_LOG
|
||||
) {
|
||||
refresh(tabState.git)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user