Fixed log not updating when new uncommited changes appear
This commit is contained in:
parent
1943bd6906
commit
d81c81de87
@ -132,8 +132,13 @@ class GitManager @Inject constructor(
|
||||
if (!operationRunning) { // Only update if there isn't any process running
|
||||
safeProcessing(showError = false) {
|
||||
println("Changes detected, loading status")
|
||||
val hasUncommitedChanges = statusManager.hasUncommitedChanges.value
|
||||
statusManager.loadHasUncommitedChanges(safeGit)
|
||||
statusManager.loadStatus(safeGit)
|
||||
|
||||
if(!hasUncommitedChanges) {
|
||||
logManager.loadLog(safeGit)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,6 @@ fun Log(
|
||||
val commitList = logStatus.plotCommitList
|
||||
val scrollState = rememberLazyListState()
|
||||
|
||||
|
||||
LaunchedEffect(selectedCommit) {
|
||||
// Scroll to commit if a Ref is selected
|
||||
if (selectedItem is SelectedItem.Ref) {
|
||||
|
Loading…
Reference in New Issue
Block a user