From 534a5642372b251ad6ab713d1475e2c4b1e9ca3c Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 22 Jun 2021 18:08:20 +0200 Subject: [PATCH] Fixed an issue where slide transitions would continue to run after switching theme sets. --- es-app/src/views/ViewController.cpp | 3 +++ es-core/src/Window.h | 1 + 2 files changed, 4 insertions(+) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index c1920431a..c4fea012b 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -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); diff --git a/es-core/src/Window.h b/es-core/src/Window.h index 907155978..634c59c3e 100644 --- a/es-core/src/Window.h +++ b/es-core/src/Window.h @@ -145,6 +145,7 @@ public: bool getAllowTextScrolling() { return mAllowTextScrolling; } void setChangedThemeSet() { mChangedThemeSet = true; } + bool getChangedThemeSet() { return mChangedThemeSet; } private: void onSleep();