mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
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:
@@ -455,7 +455,9 @@ class GymStateNotifier extends _$GymStateNotifier {
|
||||
);
|
||||
|
||||
// Calculate the pages
|
||||
calculatePages();
|
||||
if (shouldReset) {
|
||||
calculatePages();
|
||||
}
|
||||
|
||||
_logger.fine('Initialized GymModeState, initialPage=$initialPage');
|
||||
return initialPage;
|
||||
|
||||
Reference in New Issue
Block a user