Fixed display of remaining subscription traffic in the UI

This commit is contained in:
0-Kutya-0 2025-09-16 01:24:42 +03:00
parent 16788baa87
commit 36983bcda2

View File

@ -35,7 +35,7 @@ QString ParseSubInfo(const QString &info) {
}
result = QObject::tr("Used: %1 Remain: %2 Expire: %3")
.arg(ReadableSize(used), ReadableSize(total - used), DisplayTime(expire, QLocale::ShortFormat));
.arg(ReadableSize(used), (total == 0) ? QString::fromUtf8("\u221E") : ReadableSize(total - used), DisplayTime(expire, QLocale::ShortFormat));
return result;
}