Fixed an issue where slide transitions would continue to run after switching theme sets.

This commit is contained in:
Leon Styhre 2021-06-22 18:08:20 +02:00
parent 4481f7e329
commit 534a564237
2 changed files with 4 additions and 0 deletions

View file

@ -830,6 +830,9 @@ bool ViewController::input(InputConfig* config, Input input)
void ViewController::update(int deltaTime)
{
if (mWindow->getChangedThemeSet())
cancelViewTransitions();
if (mCurrentView)
mCurrentView->update(deltaTime);

View file

@ -145,6 +145,7 @@ public:
bool getAllowTextScrolling() { return mAllowTextScrolling; }
void setChangedThemeSet() { mChangedThemeSet = true; }
bool getChangedThemeSet() { return mChangedThemeSet; }
private:
void onSleep();