process page test

This commit is contained in:
MihailRis
2024-04-23 04:51:00 +03:00
parent a34fff3515
commit f8f6ffc0c5
11 changed files with 58 additions and 33 deletions
+3 -3
View File
@@ -49,9 +49,9 @@ void Menu::setPage(std::string name, bool history) {
void Menu::setPage(Page page, bool history) {
if (current.panel) {
Container::remove(current.panel);
}
if (history) {
pageStack.push(current);
if (history) {
pageStack.push(current);
}
}
current = page;
Container::add(current.panel);