Use the correct full path in tooltips

This commit is contained in:
Nils Maier 2019-10-09 18:32:22 +02:00
parent 856044c88c
commit 9d313f319d
3 changed files with 4 additions and 1 deletions

View File

@ -191,6 +191,7 @@ export class BaseDownload {
rv.destPath = dest.path; rv.destPath = dest.path;
rv.destFull = dest.full; rv.destFull = dest.full;
rv.currentName = this.browserName || rv.destName || rv.finalName; rv.currentName = this.browserName || rv.destName || rv.finalName;
rv.currentFull = `${dest.path}/${rv.currentName}`;
rv.error = this.error; rv.error = this.error;
rv.ext = this.renamer.p_ext; rv.ext = this.renamer.p_ext;
rv.retries = this.retries; rv.retries = this.retries;

View File

@ -122,6 +122,8 @@ export class DownloadItem extends EventEmitter {
public currentName: string; public currentName: string;
public currentFull: string;
public ext?: string; public ext?: string;
public position: number; public position: number;

View File

@ -182,7 +182,7 @@ export class Tooltip {
} }
const icon = item.largeIcon; const icon = item.largeIcon;
this.icon.className = icon; this.icon.className = icon;
this.name.textContent = item.destFull; this.name.textContent = item.currentFull;
this.from.textContent = item.usable; this.from.textContent = item.usable;
this.size.textContent = item.fmtSize; this.size.textContent = item.fmtSize;
this.date.textContent = new Date(item.startDate).toLocaleString(); this.date.textContent = new Date(item.startDate).toLocaleString();