diff options
author | Olivier De Cannière <olivier.decanniere96@gmail.com> | 2022-07-16 01:33:39 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-09-20 13:12:00 -0400 |
commit | 0eceed4fd72697a4e9bebf23c06b300637296361 (patch) | |
tree | d86a063a4af7e391fa3db61568d139d7df68e98c /Userland/Services | |
parent | 9414525d7552434d2099aaeb17b861ba57e55d54 (diff) | |
download | serenity-0eceed4fd72697a4e9bebf23c06b300637296361.zip |
Calendar: Add a Calendar settings dialog for the first day of the week
This commit adds a new settings dialog for the Calendar application and
applet. It allows the user to specify their preferred first day of the
week.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/Taskbar/TaskbarWindow.cpp | 3 | ||||
-rw-r--r-- | Userland/Services/Taskbar/main.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index f79c8e2892..0cc4a5f191 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -101,6 +101,9 @@ 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") { m_clock_widget->update_format(value); diff --git a/Userland/Services/Taskbar/main.cpp b/Userland/Services/Taskbar/main.cpp index 2459297fc8..25b817ccff 100644 --- a/Userland/Services/Taskbar/main.cpp +++ b/Userland/Services/Taskbar/main.cpp @@ -48,7 +48,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio recvfd sendfd proc exec rpath unix sigaction")); auto app = TRY(GUI::Application::try_create(arguments)); - Config::pledge_domain("Taskbar"); + Config::pledge_domains({ "Taskbar", "Calendar" }); Config::monitor_domain("Taskbar"); app->event_loop().register_signal(SIGCHLD, [](int) { // Wait all available children |