Skip to content

Commit 4493efe

Browse files
committed
Change setting names for single branch/author select
1 parent 9e104bd commit 4493efe

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,17 +465,17 @@ class Config {
465465
}
466466

467467
/**
468-
* Get the value of the `git-graph.repository.selectMultipleAuthors` Extension Setting.
468+
* Get the value of the `git-graph.repository.singleAuthorSelect` Extension Setting.
469469
*/
470-
get selectMultipleAuthors() {
471-
return !!this.config.get('repository.selectMultipleAuthors', true);
470+
get singleAuthorSelect() {
471+
return !!this.config.get('repository.singleAuthorSelect', true);
472472
}
473473

474474
/**
475-
* Get the value of the `git-graph.repository.selectMultipleBranches` Extension Setting.
475+
* Get the value of the `git-graph.repository.singleBranchSelect` Extension Setting.
476476
*/
477-
get selectMultipleBranches() {
478-
return !!this.config.get('repository.selectMultipleBranches', true);
477+
get singleBranchSelect() {
478+
return !!this.config.get('repository.singleBranchSelect', true);
479479
}
480480

481481
/**

src/gitGraphView.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ export class GitGraphView extends Disposable {
691691
onRepoLoad: config.onRepoLoad,
692692
referenceLabels: config.referenceLabels,
693693
repoDropdownOrder: config.repoDropdownOrder,
694-
selectMultipleAuthors: config.selectMultipleAuthors,
695-
selectMultipleBranches: config.selectMultipleBranches,
694+
singleAuthorSelect: config.singleAuthorSelect,
695+
singleBranchSelect: config.singleBranchSelect,
696696
showRemoteBranches: config.showRemoteBranches,
697697
simplifyByDecoration: config.simplifyByDecoration,
698698
showStashes: config.showStashes,

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ export interface GitGraphViewConfig {
263263
readonly onRepoLoad: OnRepoLoadConfig;
264264
readonly referenceLabels: ReferenceLabelsConfig;
265265
readonly repoDropdownOrder: RepoDropdownOrder;
266-
readonly selectMultipleAuthors: boolean;
267-
readonly selectMultipleBranches: boolean;
266+
readonly singleAuthorSelect: boolean;
267+
readonly singleBranchSelect: boolean;
268268
readonly showRemoteBranches: boolean;
269269
readonly simplifyByDecoration: boolean;
270270
readonly showStashes: boolean;

web/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ class GitGraphView {
9292
this.saveState();
9393
this.clearCommits();
9494
this.requestLoadRepoInfoAndCommits(true, true);
95-
}, !this.config.selectMultipleBranches);
95+
}, this.config.singleBranchSelect);
9696
this.authorDropdown = new Dropdown('authorDropdown', false, true, 'Authors', (values) => {
9797
this.currentAuthors = values;
9898
this.maxCommits = this.config.initialLoadCommits;
9999
this.saveState();
100100
this.clearCommits();
101101
this.requestLoadRepoInfoAndCommits(true, true);
102-
}, !this.config.selectMultipleAuthors);
102+
}, this.config.singleAuthorSelect);
103103
this.showRemoteBranchesElem = <HTMLInputElement>document.getElementById('showRemoteBranchesCheckbox')!;
104104
this.showRemoteBranchesElem.addEventListener('change', () => {
105105
this.saveRepoStateValue(this.currentRepo, 'showRemoteBranchesV2', this.showRemoteBranchesElem.checked ? GG.BooleanOverride.Enabled : GG.BooleanOverride.Disabled);

0 commit comments

Comments
 (0)