satisfied 'issue' #14
This commit is contained in:
parent
c8204dc90e
commit
c9634bf976
1 changed files with 5 additions and 6 deletions
|
@ -46,8 +46,7 @@ yawn_notification_preset = {}
|
|||
|
||||
local function fetch_weather()
|
||||
local url = api_url .. units_set .. city_id
|
||||
local f = io.popen("curl --connect-timeout 1 -fsm 1 '"
|
||||
.. url .. "'" )
|
||||
local f = io.popen("curl --connect-timeout 1 -fsm 1 '" .. url .. "'" )
|
||||
local text = f:read("*all")
|
||||
f:close()
|
||||
|
||||
|
@ -149,7 +148,7 @@ function yawn.hide()
|
|||
end
|
||||
|
||||
function yawn.show(t_out)
|
||||
if yawn.widget._layout.text == "?"
|
||||
if yawn.widget._layout.text:match("?")
|
||||
then
|
||||
fetch_weather(settings)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue