Don't recalculate the pages if it's not needed

This keeps the progression saved as well as any changed exercises
This commit is contained in:
Roland Geider
2025-11-16 15:48:15 +01:00
parent 925175b0e5
commit 9bb417bd3f

View File

@@ -455,7 +455,9 @@ class GymStateNotifier extends _$GymStateNotifier {
);
// Calculate the pages
calculatePages();
if (shouldReset) {
calculatePages();
}
_logger.fine('Initialized GymModeState, initialPage=$initialPage');
return initialPage;