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

LibThreading: Remove redundant method

This commit is contained in:
Ben Wiederhake 2021-11-01 23:39:10 +01:00 committed by Andreas Kling
parent 17d95bc1db
commit 59619572d6
6 changed files with 6 additions and 13 deletions

View file

@ -30,7 +30,7 @@ bool MonitorWidget::set_wallpaper(String path)
if (!is_different_to_current_wallpaper_path(path))
return false;
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::create(
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::construct(
[path](auto&) {
RefPtr<Gfx::Bitmap> bmp;
if (!path.is_empty())