mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Converted the context menu to a Layer
This fixes a bug with the captured background being wrong when using double buffering. Also it ensures that for example the clock in the status bar is updated when the context menu is open.
This commit is contained in:
@@ -101,7 +101,7 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts)
|
||||
orderLinks();
|
||||
|
||||
btnContextMenu->setPosition(gmenu2x->resX - 38, gmenu2x->bottomBarIconY);
|
||||
btnContextMenu->setAction(std::bind(&GMenu2X::contextMenu, gmenu2x));
|
||||
btnContextMenu->setAction(std::bind(&GMenu2X::showContextMenu, gmenu2x));
|
||||
}
|
||||
|
||||
Menu::~Menu() {
|
||||
@@ -306,7 +306,7 @@ bool Menu::handleButtonPress(InputManager::Button button) {
|
||||
incSectionIndex();
|
||||
return true;
|
||||
case InputManager::MENU:
|
||||
gmenu2x->contextMenu();
|
||||
gmenu2x->showContextMenu();
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user