v2.0.2 — Fix unlimited monthly limit display in extra usage section

This commit is contained in:
superdooper86
2026-05-07 13:44:05 +02:00
parent 773fcb1a46
commit 255f3f6cd5
4 changed files with 21 additions and 11 deletions
+15 -5
View File
@@ -504,12 +504,22 @@ struct ExtraUsageRow: View {
.font(.system(size: 12, weight: .semibold))
.foregroundColor(.secondary)
Spacer()
Text("\(extra.currency ?? "") \(String(format: "%.2f", (extra.usedCredits ?? 0) / 100)) / \(String(format: "%.2f", (extra.monthlyLimit ?? 0) / 100))")
.font(.system(size: 11.5, weight: .medium).monospacedDigit())
.foregroundColor(color)
Group {
let spent = String(format: "%.2f", (extra.usedCredits ?? 0) / 100)
let currency = extra.currency ?? ""
if let limit = extra.monthlyLimit {
Text("\(currency) \(spent) / \(String(format: "%.2f", limit / 100))")
} else {
Text("\(currency) \(spent) / Unlimited")
}
}
.font(.system(size: 11.5, weight: .medium).monospacedDigit())
.foregroundColor(color)
}
if extra.monthlyLimit != nil {
ProgressBar(value: pct / 100, color: color)
.frame(height: 4)
}
ProgressBar(value: pct / 100, color: color)
.frame(height: 4)
}
.padding(12)
.background(Color.primary.opacity(0.04))
+2 -2
View File
@@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.0.2</string>
<key>CFBundleVersion</key>
<string>8</string>
<string>9</string>
<key>LSMinimumSystemVersion</key>
<string>13.0</string>
<key>LSUIElement</key>
+1 -1
View File
@@ -8,7 +8,7 @@
[![macOS](https://img.shields.io/badge/macOS-13.0+-000000?style=flat&logo=apple&logoColor=white)](https://www.apple.com/macos/)
[![Swift](https://img.shields.io/badge/Swift-5.9-F05138?style=flat&logo=swift&logoColor=white)](https://swift.org)
[![Version](https://img.shields.io/badge/version-2.0.1-orange?style=flat)](https://github.com/superdooper86/claudechecker/releases)
[![Version](https://img.shields.io/badge/version-2.0.2-orange?style=flat)](https://github.com/superdooper86/claudechecker/releases)
[![License](https://img.shields.io/badge/license-MIT-blue?style=flat)](LICENSE)
</div>
+3 -3
View File
@@ -1,5 +1,5 @@
{
"version": "2.0.1",
"url": "https://github.com/superdooper86/claudechecker/releases/download/v2.0.1/ClaudeChecker.zip",
"notes": "Notification fixes."
"version": "2.0.2",
"url": "https://github.com/superdooper86/claudechecker/releases/download/v2.0.2/ClaudeChecker.zip",
"notes": "Fixed extra usage section."
}