mirror of https://github.com/lcpz/lain.git
calendar, #289: instead of setting timeout, don't show at all
This commit is contained in:
parent
586c54a257
commit
1c04624c0a
|
@ -79,13 +79,14 @@ function calendar.show(t_out, inc_offset, scr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
calendar.hide()
|
if widget_focused then
|
||||||
|
calendar.hide()
|
||||||
calendar.notification = naughty.notify({
|
calendar.notification = naughty.notify({
|
||||||
preset = calendar.notification_preset,
|
preset = calendar.notification_preset,
|
||||||
icon = calendar.icon,
|
icon = calendar.icon,
|
||||||
timeout = (widget_focused and t_out) or calendar.notification_preset.timeout or 5
|
timeout = t_out or calendar.notification_preset.timeout or 5
|
||||||
})
|
})
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue