Fix permanent menus getting longer and longer
This commit is contained in:
parent
f98670dee7
commit
5a097a5ce7
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user