1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

WidgetGallery: Make inspectable

WidgetGallery is only a demo anyways, and the perfect target to test the
Inspector.
This commit is contained in:
FrHun 2022-07-03 19:39:30 +02:00 committed by Andreas Kling
parent 23db98d1e9
commit dfefd1ec88

View file

@ -15,7 +15,7 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix thread"));
auto app = TRY(GUI::Application::try_create(arguments));
auto app = TRY(GUI::Application::try_create(arguments, Core::EventLoop::MakeInspectable::Yes));
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread"));
TRY(Core::System::unveil("/res", "r"));