mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 23:30:37 +02:00
Call Menu::skinUpdated() earlier in initMenu()
That method initializes linkColumns, which is divided by in setLinkIndex().
This commit is contained in:
parent
4a392a9173
commit
f71ea3bcee
@ -386,6 +386,8 @@ void GMenu2X::initMenu() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu->skinUpdated();
|
||||||
|
|
||||||
menu->setSectionIndex(confInt["section"]);
|
menu->setSectionIndex(confInt["section"]);
|
||||||
menu->setLinkIndex(confInt["link"]);
|
menu->setLinkIndex(confInt["link"]);
|
||||||
|
|
||||||
@ -393,8 +395,6 @@ void GMenu2X::initMenu() {
|
|||||||
btnContextMenu->setPosition(resX - 38, bottomBarIconY);
|
btnContextMenu->setPosition(resX - 38, bottomBarIconY);
|
||||||
btnContextMenu->setAction(BIND(&GMenu2X::contextMenu));
|
btnContextMenu->setAction(BIND(&GMenu2X::contextMenu));
|
||||||
|
|
||||||
menu->skinUpdated();
|
|
||||||
|
|
||||||
//DEBUG
|
//DEBUG
|
||||||
//menu->addLink( CARD_ROOT, "sample.pxml", "applications" );
|
//menu->addLink( CARD_ROOT, "sample.pxml", "applications" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user