mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Userland: Make GUI::Window
construction non-fallible
This commit is contained in:
parent
b6b2c6f3e2
commit
0d7b13edac
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/tcl3
Commit: 0d7b13edac
Pull-request: https://github.com/SerenityOS/serenity/pull/21102
55 changed files with 60 additions and 60 deletions
|
@ -240,7 +240,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_has_alpha_channel(true);
|
||||
window->set_title("Audio");
|
||||
window->set_window_type(GUI::WindowType::Applet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue