mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
Applications: Add a new NetworkSettings application
This commit is contained in:
parent
df7b7cbfa4
commit
7dd3c5c981
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