Fix toggle for header-clock

I'm not 100% sure why, but with this change, the listener which calls
`CheckHeaderClockEnabled` will be invoked *before* the listener which
persists the setting.

If the setting is persisted before that, the clock doesn't show up when
enabling it in the settings-menu and appears/disappears in the exact
opposite way the setting is true/false.
This commit is contained in:
Maximilian Bosch 2020-09-07 19:42:25 +02:00
parent 6ffad1d3c7
commit 2b0208e88c
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -1,4 +1,4 @@
$("#show-clock-in-header").on("change", function()
$(document).on("change", "#show-clock-in-header", function()
{
CheckHeaderClockEnabled();
});