Skip to content

Commit

Permalink
prevent possible endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueforcer committed Sep 17, 2023
1 parent db8df17 commit ee0e081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DisplayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,15 @@ bool DisplayManager_::generateCustomPage(const String &name, JsonObject doc, boo
customApp.iconName = newIconName;
customApp.icon.close();
customApp.iconPosition = 0;
customApp.currentFrame=0;
}
}
else
{
customApp.icon.close();
customApp.iconName = "";
customApp.iconPosition = 0;
customApp.currentFrame=0;
}

customApp.gradient[0] = -1;
Expand Down

0 comments on commit ee0e081

Please sign in to comment.