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
|
||||
|
||||
calendar.hide()
|
||||
|
||||
calendar.notification = naughty.notify({
|
||||
preset = calendar.notification_preset,
|
||||
icon = calendar.icon,
|
||||
timeout = (widget_focused and t_out) or calendar.notification_preset.timeout or 5
|
||||
})
|
||||
if widget_focused then
|
||||
calendar.hide()
|
||||
calendar.notification = naughty.notify({
|
||||
preset = calendar.notification_preset,
|
||||
icon = calendar.icon,
|
||||
timeout = t_out or calendar.notification_preset.timeout or 5
|
||||
})
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue