opt.: server item onTap when err occurs (#310)

This commit is contained in:
lollipopkit
2024-03-16 23:52:11 +08:00
parent f654557fae
commit 8bfb0eb9e0
7 changed files with 39 additions and 39 deletions

View File

@@ -41,7 +41,6 @@ class Disk {
}
try {
final dev = vals[0];
// Some NAS may have mounted path like this `//192.168.1.2/`
if (!_shouldCalc(dev)) continue;
list.add(Disk(
dev: dev,
@@ -172,6 +171,7 @@ class DiskUsage {
}
}
// Some NAS may have mounted path like this `//192.168.1.2/`
bool _shouldCalc(String dev) {
if (dev.startsWith('/dev')) return true;
if (dev.startsWith('//')) return true;