1
0
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:
Hossein Mehrabi 2018-06-02 13:23:47 +04:30
parent 350ba132c7
commit 4b91f78c04

View File

@ -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 {