+
Disk Usage
+ {loading &&
Reading filesystem…
}
+ {error &&
{error}
}
+ {!loading && !error && info && (
+ <>
+
+
+
+
+ Downloaded manga
+ {fmtBytes(mangaBytes)}
+
+
+
+ Drive free
+ {fmtBytes(freeBytes)}
+
+
+
+ Drive total
+ {fmtBytes(totalBytes)}
+
+
+
{info.path}
+ >
+ )}
+
+
Storage Limit
+
+
+ Limit download storage
+
+ {limitGb === null
+ ? "No limit — uses full drive capacity"
+ : `Warn when downloads exceed ${limitGb} GB`}
+
+
+ {limitGb === null ? (
+
update({ storageLimitGb: 10 })}>
+ Set limit
+
+ ) : (
+
+ update({ storageLimitGb: Math.max(1, limitGb - 1) })}
+ disabled={limitGb <= 1}>−
+ {limitGb} GB
+ update({ storageLimitGb: limitGb + 1 })}>+
+ update({ storageLimitGb: null })} title="Remove limit">↺
+
+ )}
+
+ {totalBytes > 0 && limitGb !== null && limitBytes !== null && limitBytes > freeBytes && (
+
Limit exceeds available free space ({fmtBytes(freeBytes)})
+ )}
+