usabilitybug fix

This commit is contained in:
BernardoGiordano 2018-07-13 09:59:47 +02:00
parent 194c6eceb6
commit 286d866ddb
3 changed files with 9 additions and 1 deletions

View file

@ -49,6 +49,7 @@ public:
};
void draw(void) override;
void setIndex(size_t i);
void push_back(color_t color, color_t colorMessage, const std::string& message) override;
void resetIndex(void) override;
void updateSelection(void) override;

View file

@ -100,7 +100,7 @@ void Gui::index(entryType_t type, size_t i)
}
else
{
backupList->index(i);
backupList->setIndex(i);
}
}

View file

@ -26,6 +26,13 @@
#include "scrollable.hpp"
void Scrollable::setIndex(size_t i)
{
IScrollable::index(i);
mHid->index(mIndex);
mHid->page(mPage);
}
void Scrollable::resetIndex(void)
{
mHid->index(0);