Browse Source

GMLPlayground: Pledge Calendar domain

This now allows for the preview of `@GUI::Calendar` without
crashing the whole program.
Cameron Youell 2 years ago
parent
commit
0c98cde18e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/DevTools/GMLPlayground/main.cpp

+ 1 - 1
Userland/DevTools/GMLPlayground/main.cpp

@@ -68,7 +68,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath unix"));
     TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath unix"));
     auto app = TRY(GUI::Application::try_create(arguments));
     auto app = TRY(GUI::Application::try_create(arguments));
 
 
-    Config::pledge_domain("GMLPlayground");
+    Config::pledge_domains({ "GMLPlayground", "Calendar" });
     app->set_config_domain(TRY("GMLPlayground"_string));
     app->set_config_domain(TRY("GMLPlayground"_string));
 
 
     TRY(Core::System::unveil("/res", "r"));
     TRY(Core::System::unveil("/res", "r"));