mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
LibThreading: Remove redundant method
This commit is contained in:
parent
17d95bc1db
commit
59619572d6
6 changed files with 6 additions and 13 deletions
|
@ -807,7 +807,7 @@ bool Compositor::set_wallpaper_mode(const String& mode)
|
|||
|
||||
bool Compositor::set_wallpaper(const String& path, Function<void(bool)>&& callback)
|
||||
{
|
||||
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::create(
|
||||
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::construct(
|
||||
[path](auto&) {
|
||||
return Gfx::Bitmap::try_load_from_file(path);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue