summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Roberts <lyricnz@gmail.com>2021-10-14 20:01:07 +1100
committerSimon Roberts <lyricnz@gmail.com>2021-10-14 20:01:07 +1100
commit781b87d95dec6d7cf8cd97dc470ad57f573d28af (patch)
tree1539ff6e55f3c5c66a19c741076a99eb27740a62
parent68fd85830448e3f4721a47d0658642eca01e2bca (diff)
Move currencyConversion out of chartInfo - so it shows when hideChart=true
-rw-r--r--cointop/marketbar.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/cointop/marketbar.go b/cointop/marketbar.go
index 86b5dbf..bfaeb2c 100644
--- a/cointop/marketbar.go
+++ b/cointop/marketbar.go
@@ -78,10 +78,9 @@ func (ct *Cointop) UpdateMarketbar() error {
chartInfo := ""
if !ct.State.hideChart {
chartInfo = fmt.Sprintf(
- "[ Chart: %s %s %s ] ",
+ "[ Chart: %s %s ] ",
charttitle,
timeframe,
- ct.State.currencyConversion,
)
}
@@ -92,8 +91,9 @@ func (ct *Cointop) UpdateMarketbar() error {
}
content = fmt.Sprintf(
- "%sTotal Portfolio Value: %s • 24H: %s",
+ "%sTotal Portfolio Value %s: %s • 24H: %s",
chartInfo,
+ ct.State.currencyConversion,
ct.colorscheme.MarketBarLabelActive(totalstr),
percentChange24Hstr,
)
@@ -142,10 +142,9 @@ func (ct *Cointop) UpdateMarketbar() error {
chartInfo := ""
if !ct.State.hideChart {
chartInfo = fmt.Sprintf(
- "[ Chart: %s %s %s] ",
+ "[ Chart: %s %s] ",
ct.colorscheme.MarketBarLabelActive(chartname),
timeframe,
- ct.State.currencyConversion,
)
}
@@ -166,8 +165,9 @@ func (ct *Cointop) UpdateMarketbar() error {
}
content = fmt.Sprintf(
- "%sGlobal ▶ Market Cap: %s %s 24H Volume: %s %s BTC Dominance: %.2f%%",
+ "%sGlobal %s ▶ Market Cap: %s %s 24H Volume: %s %s BTC Dominance: %.2f%%",
chartInfo,
+ ct.State.currencyConversion,
fmt.Sprintf("%s%s", ct.CurrencySymbol(), marketCapStr),
separator1,
fmt.Sprintf("%s%s", ct.CurrencySymbol(), volumeStr),