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.CoroutineScope
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.StateFlow
|
import kotlinx.coroutines.flow.StateFlow
|
||||||
import kotlinx.coroutines.flow.filter
|
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.eclipse.jgit.api.Git
|
import org.eclipse.jgit.api.Git
|
||||||
import org.eclipse.jgit.revwalk.RevCommit
|
import org.eclipse.jgit.revwalk.RevCommit
|
||||||
@ -31,10 +30,13 @@ class StashesViewModel @Inject constructor(
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
tabScope.launch {
|
tabScope.launch {
|
||||||
tabState.refreshFlowFiltered(RefreshType.ALL_DATA, RefreshType.STASHES)
|
tabState.refreshFlowFiltered(
|
||||||
{
|
RefreshType.ALL_DATA,
|
||||||
refresh(tabState.git)
|
RefreshType.STASHES,
|
||||||
}
|
RefreshType.UNCOMMITED_CHANGES_AND_LOG
|
||||||
|
) {
|
||||||
|
refresh(tabState.git)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user