Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit e704e00

Browse files
authored
Merge pull request #225 from lyricnz/feature/show-currency-marketbar
Move currencyConversion out of chartInfo - so it shows when hideChart=true
2 parents 68fd858 + 751053f commit e704e00

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cointop/marketbar.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ func (ct *Cointop) UpdateMarketbar() error {
7878
chartInfo := ""
7979
if !ct.State.hideChart {
8080
chartInfo = fmt.Sprintf(
81-
"[ Chart: %s %s %s ] ",
81+
"[ Chart: %s %s ] ",
8282
charttitle,
8383
timeframe,
84-
ct.State.currencyConversion,
8584
)
8685
}
8786

@@ -92,8 +91,9 @@ func (ct *Cointop) UpdateMarketbar() error {
9291
}
9392

9493
content = fmt.Sprintf(
95-
"%sTotal Portfolio Value: %s • 24H: %s",
94+
"%sTotal Portfolio Value %s: %s • 24H: %s",
9695
chartInfo,
96+
ct.State.currencyConversion,
9797
ct.colorscheme.MarketBarLabelActive(totalstr),
9898
percentChange24Hstr,
9999
)
@@ -142,10 +142,9 @@ func (ct *Cointop) UpdateMarketbar() error {
142142
chartInfo := ""
143143
if !ct.State.hideChart {
144144
chartInfo = fmt.Sprintf(
145-
"[ Chart: %s %s %s] ",
145+
"[ Chart: %s %s] ",
146146
ct.colorscheme.MarketBarLabelActive(chartname),
147147
timeframe,
148-
ct.State.currencyConversion,
149148
)
150149
}
151150

@@ -166,8 +165,9 @@ func (ct *Cointop) UpdateMarketbar() error {
166165
}
167166

168167
content = fmt.Sprintf(
169-
"%sGlobal ▶ Market Cap: %s %s 24H Volume: %s %s BTC Dominance: %.2f%%",
168+
"%sGlobal %s ▶ Market Cap: %s %s 24H Volume: %s %s BTC Dominance: %.2f%%",
170169
chartInfo,
170+
ct.State.currencyConversion,
171171
fmt.Sprintf("%s%s", ct.CurrencySymbol(), marketCapStr),
172172
separator1,
173173
fmt.Sprintf("%s%s", ct.CurrencySymbol(), volumeStr),

0 commit comments

Comments
 (0)