#25 fix attempt

This commit is contained in:
luke bonham 2014-02-07 12:39:18 +01:00 committed by copycat-killer
parent 6b91332a38
commit 96df4b8790
2 changed files with 4 additions and 6 deletions

View File

@ -35,7 +35,7 @@ function net.get_device()
if ws ~= nil then if ws ~= nil then
return ws:gsub(": UP", "") return ws:gsub(": UP", "")
else else
return "" return "network off"
end end
end end
@ -80,10 +80,8 @@ local function worker(args)
then then
if helpers.get_map(iface) if helpers.get_map(iface)
then then
n_title = iface
if n_title == "" then n_title = "network" end
naughty.notify({ naughty.notify({
title = n_title, title = iface,
text = "no carrier", text = "no carrier",
timeout = 7, timeout = 7,
position = "top_left", position = "top_left",

View File

@ -58,12 +58,12 @@ local function fetch_weather()
yawn.icon:set_image(icon_path .. "na.png") yawn.icon:set_image(icon_path .. "na.png")
if text == "" then if text == "" then
weather_data = "Service not available at the moment." weather_data = "Service not available at the moment."
yawn.widget:set_text(" N/A") yawn.widget:set_text(" N/A ")
else else
weather_data = "City not found!\n" .. weather_data = "City not found!\n" ..
"Are you sure " .. city_id .. "Are you sure " .. city_id ..
" is your Yahoo city ID?" " is your Yahoo city ID?"
yawn.widget:set_text(" ?") yawn.widget:set_text(" ? ")
end end
return return
end end