{entries.map((entry) => {
+ const tooltipId = entry.tooltip ? `downloads-status-${entry.metric}-tooltip` : undefined;
+ return {entry.label}{entry.tooltip ? {entry.tooltip} : null}
;
+ })}Geschwindigkeit{speed}
ETA{eta}
;
}
export function DownloadsToolbar({ actions, model }: { actions: DownloadsViewActions; model: DownloadsViewModel }): ReactElement {
diff --git a/src/renderer/views/downloads/downloads-model.ts b/src/renderer/views/downloads/downloads-model.ts
index 79ce77a..0b23678 100644
--- a/src/renderer/views/downloads/downloads-model.ts
+++ b/src/renderer/views/downloads/downloads-model.ts
@@ -121,6 +121,11 @@ export function formatRemainingDownloadBytes(summary: { bytes: number; unknownIt
return summary.bytes > 0 ? `≥ ${humanSize(summary.bytes)}` : "Unbekannt";
}
+export function formatRemainingDownloadTooltip(summary: { bytes: number; unknownItems: number }): string {
+ if (summary.unknownItems <= 0) return "";
+ return `Noch unbekannte Dateigrößen: ${summary.unknownItems}. Die tatsächliche Restmenge kann höher sein.`;
+}
+
export function getDownloadSpeedBps(packageSpeeds: Record