fixed bug in default lists

This commit is contained in:
louis
2016-02-20 17:22:11 +01:00
parent 21732b1777
commit 46a716da76
3 changed files with 10 additions and 2 deletions

View File

@@ -273,6 +273,13 @@ void cLeMenuDefault::CheckProgressBar(const char *text, int tab) {
tokenContainer->AddIntToken(32 + tab, len);
}
void cLeMenuDefault::Clear(void) {
if (current && currentElement) {
currentElement->Close();
}
cViewElement::Close();
dirty = false;
}
/******************************************************************
* cVeMenuMain
******************************************************************/

View File

@@ -30,7 +30,7 @@ public:
bool DoScroll(void) { return current; };
virtual void RenderCurrent(void) { };
void Close(void);
void Clear(void);
virtual void Clear(void);
};
/******************************************************************
@@ -70,6 +70,7 @@ public:
void SetPlugin(const char *plugName) { this->plugName = plugName; };
void SetTokenContainer(void);
bool Parse(bool forced = true);
void Clear(void);
};
/******************************************************************