Skip to content

Commit ba7b07d

Browse files
committed
correctly update sidebar on settings change; reduce default historyCount
1 parent 1cfe86b commit ba7b07d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

schema/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "integer",
1010
"title": "History count",
1111
"description": "Number of (most recent) commits shown in the history log",
12-
"default": 100
12+
"default": 25
1313
}
1414
}
1515
}

src/components/GitWidget.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export class GitWidget extends Widget {
9494

9595
void registry.load(key).then(settings => {
9696
this._settings = settings;
97-
// this._settings.changed.connect(this._loadSettings, this);
9897

9998
const element = (
10099
<GitPanel
@@ -105,6 +104,8 @@ export class GitWidget extends Widget {
105104
/>
106105
);
107106
this.component = ReactDOM.render(element, this.node);
107+
108+
this._settings.changed.connect(this.component.refresh, this);
108109
this.component.refresh();
109110
});
110111
}

0 commit comments

Comments
 (0)