mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Call Menu::skinUpdated() earlier in initMenu()
That method initializes linkColumns, which is divided by in setLinkIndex().
This commit is contained in:
@@ -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" );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user