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
Notes: sideshowbarker 2024-07-17 08:54:34 +09:00

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"));