Update calendar whenever dashboard is shown

This commit is contained in:
elenapan 2020-04-27 20:24:55 +03:00
parent 6757cfbc1e
commit 28f86888aa
2 changed files with 14 additions and 0 deletions

View file

@ -215,6 +215,13 @@ calendar_widget:buttons(gears.table.join(
end)
))
-- Update calendar whenever dashboard is shown
dashboard:connect_signal("property::visible", function ()
if dashboard.visible then
calendar_widget.date = os.date('*t')
end
end)
local calendar_box = create_boxed_widget(calendar_widget, dpi(300), dpi(400), x.background)
-- local calendar_box = create_boxed_widget(calendar, 380, 540, x.color0)

View file

@ -218,6 +218,13 @@ calendar_widget:buttons(gears.table.join(
end)
))
-- Update calendar whenever dashboard is shown
dashboard:connect_signal("property::visible", function ()
if dashboard.visible then
calendar_widget.date = os.date('*t')
end
end)
local calendar_box = create_boxed_widget(calendar_widget, dpi(300), dpi(400), x.background)
-- local calendar_box = create_boxed_widget(calendar, 380, 540, x.color0)