Eric Amodio 1 anno fa
parent
commit
044887bf00
2 ha cambiato i file con 7 aggiunte e 11 eliminazioni
  1. +5
    -7
      src/plus/webviews/graph/graphWebview.ts
  2. +2
    -4
      src/plus/webviews/timeline/timelineWebview.ts

+ 5
- 7
src/plus/webviews/graph/graphWebview.ts Vedi File

@ -753,13 +753,11 @@ export class GraphWebviewProvider implements WebviewProvider {
}
private onThemeChanged(theme: ColorTheme) {
if (this._theme != null) {
if (
(isDarkTheme(theme) && isDarkTheme(this._theme)) ||
(isLightTheme(theme) && isLightTheme(this._theme))
) {
return;
}
if (
this._theme != null &&
((isDarkTheme(theme) && isDarkTheme(this._theme)) || (isLightTheme(theme) && isLightTheme(this._theme)))
) {
return;
}
this._theme = theme;

+ 2
- 4
src/plus/webviews/timeline/timelineWebview.ts Vedi File

@ -223,10 +223,8 @@ export class TimelineWebviewProvider implements WebviewProvider {
if (e.data == null) return;
let uri: Uri | undefined = e.data.uri;
if (uri != null) {
if (!this.container.git.isTrackable(uri)) {
uri = undefined;
}
if (uri != null && !this.container.git.isTrackable(uri)) {
uri = undefined;
}
if (!this.updatePendingUri(uri)) return;

Caricamento…
Annulla
Salva