Icon outline setting was ignored if no background image found
Might have been the cause behind #10019.
This commit is contained in:
@@ -98,16 +98,13 @@ BackgroundImage::GetBackgroundImage(const BNode* node, bool isDesktop)
|
|||||||
if (container.FindString(kBackgroundImageInfoPath, index, &path)
|
if (container.FindString(kBackgroundImageInfoPath, index, &path)
|
||||||
== B_OK) {
|
== B_OK) {
|
||||||
bitmap = BTranslationUtils::GetBitmap(path);
|
bitmap = BTranslationUtils::GetBitmap(path);
|
||||||
if (!bitmap) {
|
if (!bitmap)
|
||||||
PRINT(("failed to load background bitmap from path\n"));
|
PRINT(("failed to load background bitmap from path\n"));
|
||||||
continue;
|
|
||||||
}
|
|
||||||
} else
|
} else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (be_control_look != NULL && isDesktop) {
|
if (be_control_look != NULL && isDesktop)
|
||||||
be_control_look->SetBackgroundInfo(container);
|
be_control_look->SetBackgroundInfo(container);
|
||||||
}
|
|
||||||
|
|
||||||
container.FindInt32(kBackgroundImageInfoWorkspaces, index,
|
container.FindInt32(kBackgroundImageInfoWorkspaces, index,
|
||||||
(int32*)&workspaces);
|
(int32*)&workspaces);
|
||||||
|
|||||||
Reference in New Issue
Block a user