mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
Userland: Make GUI::Window
construction non-fallible
This commit is contained in:
parent
b6b2c6f3e2
commit
0d7b13edac
55 changed files with 60 additions and 60 deletions
|
@ -76,7 +76,7 @@ ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::try_create()
|
|||
|
||||
ErrorOr<RefPtr<GUI::Window>> MainWidget::create_preview_window()
|
||||
{
|
||||
auto window = TRY(GUI::Window::try_create(this));
|
||||
auto window = GUI::Window::construct(this);
|
||||
window->set_window_mode(GUI::WindowMode::RenderAbove);
|
||||
window->set_title("Preview");
|
||||
window->resize(400, 150);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue