1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

Calendar: Only accept Calendar notifications

Previously, changing the time format caused Taskbar to crash.

This commit also simplifies TaskbarWindow::config_string_did_change()
so that it is in line with the changes made to
Calendar::config_string_did_change().

Fixes #15384
This commit is contained in:
implicitfield 2022-09-27 20:52:37 +03:00 committed by Tim Flynn
parent a58d72656d
commit 3353f89e22
2 changed files with 2 additions and 7 deletions

View file

@ -101,11 +101,7 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu)
void TaskbarWindow::config_string_did_change(String const& domain, String const& group, String const& key, String const& value)
{
if (domain == "Calendar"sv)
return;
VERIFY(domain == "Taskbar");
if (group == "Clock" && key == "TimeFormat") {
if (domain == "Taskbar" && group == "Clock" && key == "TimeFormat") {
m_clock_widget->update_format(value);
update_applet_area();
}