Fix permanent menus getting longer and longer

This commit is contained in:
zvon 2021-09-13 09:55:25 +02:00
parent f98670dee7
commit 5a097a5ce7

View File

@ -22,6 +22,7 @@ public:
virtual void parse() = 0; virtual void parse() = 0;
void clearMenus() { void clearMenus() {
menus.clear(); menus.clear();
permanent.clear();
menus.resize(7); menus.resize(7);
for(auto &x : menus) for(auto &x : menus)
x.setInvalidMenu(); x.setInvalidMenu();