Fixed graph not updating properly when switching branches
This commit is contained in:
parent
71bf75ceca
commit
61f0c00290
@ -155,7 +155,7 @@ fun Log(
|
|||||||
onUncommitedChangesSelected()
|
onUncommitedChangesSelected()
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
val hasPreviousCommits = remember(commitList) { commitList.count() > 0 }
|
val hasPreviousCommits = commitList.count() > 0
|
||||||
|
|
||||||
UncommitedChangesGraphLine(
|
UncommitedChangesGraphLine(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
@ -282,7 +282,7 @@ fun Log(
|
|||||||
dialogManager.show {
|
dialogManager.show {
|
||||||
MergeDialog(
|
MergeDialog(
|
||||||
currentBranchName = "HEAD",
|
currentBranchName = "HEAD",
|
||||||
mergeBranchName = ref.name,
|
mergeBranchName = ref.simpleName,
|
||||||
onReject = {
|
onReject = {
|
||||||
dialogManager.dismiss()
|
dialogManager.dismiss()
|
||||||
},
|
},
|
||||||
@ -401,12 +401,9 @@ fun CommitsGraphLine(
|
|||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
plotCommit: GraphNode,
|
plotCommit: GraphNode,
|
||||||
) {
|
) {
|
||||||
val passingLanes = remember(plotCommit) {
|
val passingLanes = plotCommit.passingLanes
|
||||||
plotCommit.passingLanes
|
val forkingOffLanes = plotCommit.forkingOffLanes
|
||||||
}
|
val mergingLanes = plotCommit.mergingLanes
|
||||||
|
|
||||||
val forkingOffLanes = remember(plotCommit) { plotCommit.forkingOffLanes }
|
|
||||||
val mergingLanes = remember(plotCommit) { plotCommit.mergingLanes }
|
|
||||||
|
|
||||||
Box(modifier = modifier) {
|
Box(modifier = modifier) {
|
||||||
Canvas(
|
Canvas(
|
||||||
|
Loading…
Reference in New Issue
Block a user