mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
fixed display after any update
This commit is contained in:
parent
350ba132c7
commit
4b91f78c04
@ -129,6 +129,7 @@ func (widget *Widget) updateCurrencies() {
|
||||
recover()
|
||||
}()
|
||||
for _, fromCurrency := range widget.list.items {
|
||||
|
||||
var (
|
||||
client http.Client
|
||||
jsonResponse cResponse
|
||||
@ -152,8 +153,9 @@ func (widget *Widget) updateCurrencies() {
|
||||
_ = json.NewDecoder(response.Body).Decode(&jsonResponse)
|
||||
|
||||
setPrices(&jsonResponse, fromCurrency)
|
||||
|
||||
}
|
||||
|
||||
display(widget)
|
||||
}
|
||||
|
||||
func makeRequest(currency *fromCurrency) *http.Request {
|
||||
|
Loading…
x
Reference in New Issue
Block a user