Wait for deskbar to launch
This commit is contained in:
parent
bbda90725e
commit
21ceb10d7e
|
@ -260,15 +260,18 @@ our_image(image_info& image)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int32
|
int32
|
||||||
installDeskbar()
|
installDeskbar()
|
||||||
{
|
{
|
||||||
int32 deskbarId = -1;
|
int32 deskbarId = -1;
|
||||||
|
|
||||||
removeDeskbar();
|
// Just in case deskbar hasn't launched yet
|
||||||
BDeskbar deskbar;
|
if (BDeskbar().IsRunning() == false)
|
||||||
|
sleep(3);
|
||||||
|
|
||||||
|
removeDeskbar();
|
||||||
|
|
||||||
|
BDeskbar deskbar;
|
||||||
deskbar.AddItem(
|
deskbar.AddItem(
|
||||||
new DeskbarView(BRect(0,0, deskbar.MaxItemHeight() - 1,
|
new DeskbarView(BRect(0,0, deskbar.MaxItemHeight() - 1,
|
||||||
deskbar.MaxItemHeight() - 1)),
|
deskbar.MaxItemHeight() - 1)),
|
||||||
|
|
Ŝarĝante…
Reference in New Issue