Deskbar: Inital FetchIcon() in AttachedToWindow()
This ensures that we have a connection to App Server at the time we are fetching the icon. Hopefully fixes #13172
This commit is contained in:
parent
223ea4329f
commit
52e243a7d1
@ -111,7 +111,6 @@ TBarMenuBar::TBarMenuBar(BRect frame, const char* name, TBarView* barView)
|
||||
|
||||
fDeskbarMenuItem = new TDeskbarMenuTitle(frame.Width(), frame.Height(),
|
||||
NULL, beMenu);
|
||||
fDeskbarMenuItem->FetchIcon();
|
||||
AddItem(fDeskbarMenuItem);
|
||||
}
|
||||
|
||||
@ -121,6 +120,15 @@ TBarMenuBar::~TBarMenuBar()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TBarMenuBar::AttachedToWindow()
|
||||
{
|
||||
fDeskbarMenuItem->FetchIcon();
|
||||
|
||||
BMenuBar::AttachedToWindow();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TBarMenuBar::SmartResize(float width, float height)
|
||||
{
|
||||
|
@ -62,6 +62,8 @@ public:
|
||||
TBarView* barView);
|
||||
virtual ~TBarMenuBar();
|
||||
|
||||
virtual void AttachedToWindow();
|
||||
|
||||
virtual void MouseMoved(BPoint where, uint32 code,
|
||||
const BMessage* message);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user