浏览代码

Fixes backwards indicator

main
Eric Amodio 6 年前
父节点
当前提交
58cd5c1996
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      src/views/branchNode.ts
  2. +2
    -2
      src/views/statusNode.ts

+ 2
- 2
src/views/branchNode.ts 查看文件

@ -65,10 +65,10 @@ export class BranchNode extends ExplorerRefNode {
if (this.branch.state.ahead || this.branch.state.behind) {
if (this.branch.state.behind) {
iconSuffix = '-yellow';
iconSuffix = '-red';
}
if (this.branch.state.ahead) {
iconSuffix = this.branch.state.behind ? '-red' : '-green';
iconSuffix = this.branch.state.behind ? '-yellow' : '-green';
}
}
}

+ 2
- 2
src/views/statusNode.ts 查看文件

@ -83,10 +83,10 @@ export class StatusNode extends ExplorerNode {
hasChildren = true;
if (status.state.behind) {
iconSuffix = '-yellow';
iconSuffix = '-red';
}
if (status.state.ahead) {
iconSuffix = status.state.behind ? '-red' : '-green';
iconSuffix = status.state.behind ? '-yellow' : '-green';
}
}
}

正在加载...
取消
保存