1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 17:38:38 +00:00

Updated else statements

This commit is contained in:
simonrogers 2020-04-09 12:58:06 +01:00
parent e011160f0b
commit 8bafa107a7

View File

@ -150,7 +150,7 @@ class CurrencyBarItem: CustomButtonTouchBarItem {
if full { if full {
title = String(format: "%@%@‣%@", prefix, postfix, decimalString) title = String(format: "%@%@‣%@", prefix, postfix, decimalString)
} else { } else {
title = String(format: "%.2f", value) title = String(format: "%@%.2f", prefix, value)
} }
let regularFont = attributedTitle.attribute(.font, at: 0, effectiveRange: nil) as? NSFont ?? NSFont.systemFont(ofSize: 15) let regularFont = attributedTitle.attribute(.font, at: 0, effectiveRange: nil) as? NSFont ?? NSFont.systemFont(ofSize: 15)