Offline gym log for Android. No account, no ads, no internet.
Dart androidbodybuildingdartexercisesf-droidfitnessfluttergymgym-apphealthprivacyself-hostedworkoutworkout-appworkout-tracker
Move the loaded gear list back inside the library mixin
InlitX52b6ba75fe47
diff --git a/lib/state/library_state.dart b/lib/state/library_state.dartindex 45c29df..414b0c2 100644--- a/lib/state/library_state.dart+++ b/lib/state/library_state.dart@@ -310,6 +310,8 @@ mixin LibraryState on FitCore {return !_hasLoadedHistory(id);}+ static const _loadedHolds = {'Dumbbell', 'Kettlebell', 'Cable', 'Machine', 'Weighted'};+bool _hasLoadedHistory(String id) {for (final s in sessions) {for (final e in s.exercises) {@@ -333,5 +335,3 @@ mixin LibraryState on FitCore {bool isCustom(String id) => customExercises.any((e) => e.id == id);}- static const _loadedHolds = {'Dumbbell', 'Kettlebell', 'Cable', 'Machine', 'Weighted'};-