if menu is empty, clear it
before this if the only element was removed from menu, it was still displayed.
This commit is contained in:
@@ -262,7 +262,7 @@ template <class T> void Menu<T>::Refresh()
|
||||
{
|
||||
if (itsOptions.empty())
|
||||
{
|
||||
wrefresh(itsWindow);
|
||||
Window::Clear();
|
||||
return;
|
||||
}
|
||||
int MaxBeginning = itsOptions.size() < itsHeight ? 0 : itsOptions.size()-itsHeight;
|
||||
|
||||
Reference in New Issue
Block a user