mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:30:18 +02:00
Sort links once they have all been added to the menu
This commit is contained in:
parent
1d532c9b44
commit
8bb58f6270
@ -394,6 +394,7 @@ void GMenu2X::initMenu() {
|
||||
}
|
||||
|
||||
menu->skinUpdated();
|
||||
menu->orderLinks();
|
||||
|
||||
menu->setSectionIndex(confInt["section"]);
|
||||
menu->setLinkIndex(confInt["link"]);
|
||||
|
@ -98,8 +98,6 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts)
|
||||
}
|
||||
#endif
|
||||
|
||||
orderLinks();
|
||||
|
||||
btnContextMenu->setPosition(gmenu2x->resX - 38, gmenu2x->bottomBarIconY);
|
||||
btnContextMenu->setAction(std::bind(&GMenu2X::showContextMenu, gmenu2x));
|
||||
}
|
||||
|
@ -75,7 +75,6 @@ private:
|
||||
|
||||
void readLinks();
|
||||
void freeLinks();
|
||||
void orderLinks();
|
||||
|
||||
// Load all the sections of the given "sections" directory.
|
||||
void readSections(std::string parentDir);
|
||||
@ -123,6 +122,7 @@ public:
|
||||
void deleteSelectedSection();
|
||||
|
||||
void skinUpdated();
|
||||
void orderLinks();
|
||||
|
||||
// Layer implementation:
|
||||
virtual bool runAnimations();
|
||||
|
Loading…
Reference in New Issue
Block a user