From ee0e0812d711b10c19b3e0d1fd0fed0e947d1197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20M=C3=BChl?= <31169771+Blueforcer@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:06:05 +0200 Subject: [PATCH] prevent possible endless loop --- src/DisplayManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DisplayManager.cpp b/src/DisplayManager.cpp index f198af0a..0b4e3895 100644 --- a/src/DisplayManager.cpp +++ b/src/DisplayManager.cpp @@ -611,6 +611,7 @@ bool DisplayManager_::generateCustomPage(const String &name, JsonObject doc, boo customApp.iconName = newIconName; customApp.icon.close(); customApp.iconPosition = 0; + customApp.currentFrame=0; } } else @@ -618,6 +619,7 @@ bool DisplayManager_::generateCustomPage(const String &name, JsonObject doc, boo customApp.icon.close(); customApp.iconName = ""; customApp.iconPosition = 0; + customApp.currentFrame=0; } customApp.gradient[0] = -1;