mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
When multi-scraping and scrolling a long name, the start position would sometimes not reset correctly.
This commit is contained in:
parent
c2619fd520
commit
89cf82b88e
|
@ -598,6 +598,7 @@ bool GuiScraperSearch::input(InputConfig* config, Input input)
|
||||||
if (config->isMappedTo("a", input) && input.value != 0) {
|
if (config->isMappedTo("a", input) && input.value != 0) {
|
||||||
if (mBlockAccept || mScraperResults.empty())
|
if (mBlockAccept || mScraperResults.empty())
|
||||||
return true;
|
return true;
|
||||||
|
mResultList->setLoopRows(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check whether we should allow a refine of the game name.
|
// Check whether we should allow a refine of the game name.
|
||||||
|
@ -646,8 +647,6 @@ void GuiScraperSearch::render(const glm::mat4& parentTrans)
|
||||||
|
|
||||||
void GuiScraperSearch::returnResult(ScraperSearchResult result)
|
void GuiScraperSearch::returnResult(ScraperSearchResult result)
|
||||||
{
|
{
|
||||||
mResultList->setLoopRows(false);
|
|
||||||
|
|
||||||
mBlockAccept = true;
|
mBlockAccept = true;
|
||||||
mAcceptedResult = true;
|
mAcceptedResult = true;
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,11 @@ public:
|
||||||
float getRowHeight(int row) const { return getRowHeight(mEntries.at(row).data); }
|
float getRowHeight(int row) const { return getRowHeight(mEntries.at(row).data); }
|
||||||
|
|
||||||
// Horizontal looping for row content that doesn't fit on-screen.
|
// Horizontal looping for row content that doesn't fit on-screen.
|
||||||
void setLoopRows(bool state) { mLoopRows = state; }
|
void setLoopRows(bool state)
|
||||||
|
{
|
||||||
|
stopLooping();
|
||||||
|
mLoopRows = state;
|
||||||
|
}
|
||||||
void stopLooping()
|
void stopLooping()
|
||||||
{
|
{
|
||||||
mLoopOffset = 0;
|
mLoopOffset = 0;
|
||||||
|
|
Loading…
Reference in a new issue