mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Fixed display of remaining subscription traffic in the UI
This commit is contained in:
parent
16788baa87
commit
36983bcda2
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user