fix completed result tooltip

This commit is contained in:
mercury233
2025-12-27 10:48:57 +08:00
parent 90299b227e
commit 092765535f
2 changed files with 11 additions and 1 deletions

View File

@@ -367,6 +367,16 @@ export class App implements AfterViewInit, OnInit {
return baseDir + encodeURIComponent(download.filename);
}
buildResultItemTooltip(download: Download) {
const parts = [];
if (download.msg) {
parts.push(download.msg);
}
if (download.error) {
parts.push(download.error);
}
return parts.join(' | ');
}
isNumber(event: KeyboardEvent) {
const charCode = +event.code || event.keyCode;