Fixed opening a new repository would still show info from the previous instance
This commit is contained in:
parent
a7134a31dd
commit
6be8d49654
1 changed files with 3 additions and 1 deletions
|
@ -166,6 +166,8 @@ class TabViewModel @Inject constructor(
|
|||
tabState.initGit(git)
|
||||
|
||||
onRepositoryChanged(repository.directory.parent)
|
||||
tabState.newSelectedItem(selectedItem = SelectedItem.UncommitedChanges)
|
||||
newDiffSelected = null
|
||||
refreshRepositoryInfo()
|
||||
|
||||
watchRepositoryChanges(git)
|
||||
|
@ -233,7 +235,7 @@ class TabViewModel @Inject constructor(
|
|||
|
||||
// Sometimes external apps can run filesystem multiple operations in a fraction of a second.
|
||||
// To prevent excessive updates, we add a slight delay between updates emission to prevent slowing down
|
||||
// the com.jetpackduba.gitnuro.app by constantly running "git status".
|
||||
// the app by constantly running "git status".
|
||||
val currentTimeMillis = System.currentTimeMillis()
|
||||
val diffTime = currentTimeMillis - lastNotify
|
||||
|
||||
|
|
Loading…
Reference in a new issue