mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Applications: Add a new NetworkSettings application
This commit is contained in:
parent
df7b7cbfa4
commit
7dd3c5c981
Notes:
sideshowbarker
2024-07-17 09:34:36 +09:00
Author: https://github.com/sppmacd
Commit: 7dd3c5c981
Pull-request: https://github.com/SerenityOS/serenity/pull/13259
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/IdanHo
9 changed files with 462 additions and 1 deletions
|
@ -87,8 +87,10 @@ ErrorOr<Icon> Icon::try_create_default_icon(StringView name)
|
|||
if (auto bitmap_or_error = Gfx::Bitmap::try_load_from_file(String::formatted("/res/icons/32x32/{}.png", name)); !bitmap_or_error.is_error())
|
||||
bitmap32 = bitmap_or_error.release_value();
|
||||
|
||||
if (!bitmap16 && !bitmap32)
|
||||
if (!bitmap16 && !bitmap32) {
|
||||
dbgln("Default icon not found: {}", name);
|
||||
return Error::from_string_literal("Default icon not found"sv);
|
||||
}
|
||||
|
||||
return Icon(move(bitmap16), move(bitmap32));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue