瀏覽代碼

Removes needless check

main
Eric Amodio 4 年之前
父節點
當前提交
71bf23ec9d
共有 6 個文件被更改,包括 1 次插入6 次删除
  1. +0
    -1
      src/views/compareView.ts
  2. +0
    -1
      src/views/fileHistoryView.ts
  3. +0
    -1
      src/views/lineHistoryView.ts
  4. +0
    -1
      src/views/repositoriesView.ts
  5. +0
    -1
      src/views/searchView.ts
  6. +1
    -1
      src/views/viewBase.ts

+ 0
- 1
src/views/compareView.ts 查看文件

@ -70,7 +70,6 @@ export class CompareView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'compare') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/fileHistoryView.ts 查看文件

@ -54,7 +54,6 @@ export class FileHistoryView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'fileHistory') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/lineHistoryView.ts 查看文件

@ -53,7 +53,6 @@ export class LineHistoryView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'lineHistory') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/repositoriesView.ts 查看文件

@ -114,7 +114,6 @@ export class RepositoriesView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'repositories') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/searchView.ts 查看文件

@ -65,7 +65,6 @@ export class SearchView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'search') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 1
- 1
src/views/viewBase.ts 查看文件

@ -96,7 +96,7 @@ export abstract class ViewBase> implements TreeData
protected abstract onConfigurationChanged(e: ConfigurationChangeEvent): void;
protected initialize(container?: string, options: { showCollapseAll?: boolean } = {}) {
if (this._disposable) {
if (this._disposable != null) {
this._disposable.dispose();
this._onDidChangeTreeData = new EventEmitter<ViewNode>();
}

Loading…
取消
儲存