mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
Userland: Make Window::set_main_widget()
non-fallible
This commit is contained in:
parent
c9297126db
commit
3aa49f268c
120 changed files with 144 additions and 133 deletions
|
@ -101,7 +101,7 @@ ErrorOr<void> run_file_operation(FileOperation operation, Vector<DeprecatedStrin
|
|||
auto pipe_input_file = TRY(Core::File::adopt_fd(pipe_fds[0], Core::File::OpenMode::Read));
|
||||
auto buffered_pipe = TRY(Core::InputBufferedFile::create(move(pipe_input_file)));
|
||||
|
||||
(void)TRY(window->set_main_widget<FileOperationProgressWidget>(operation, move(buffered_pipe), pipe_fds[0]));
|
||||
(void)window->set_main_widget<FileOperationProgressWidget>(operation, move(buffered_pipe), pipe_fds[0]);
|
||||
window->resize(320, 190);
|
||||
if (parent_window)
|
||||
window->center_within(*parent_window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue