summaryrefslogtreecommitdiff
path: root/lib/view_model/badge_motive_view_model.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/view_model/badge_motive_view_model.dart')
-rw-r--r--lib/view_model/badge_motive_view_model.dart2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/view_model/badge_motive_view_model.dart b/lib/view_model/badge_motive_view_model.dart
index 75bd5b0..c00a36c 100644
--- a/lib/view_model/badge_motive_view_model.dart
+++ b/lib/view_model/badge_motive_view_model.dart
@@ -30,6 +30,7 @@ class BadgeMotiveViewModel extends ChangeNotifier {
bool get allowSelection => !_busy;
List<BadgeMotive> get motives => _motives;
+ BadgeMotive? currentMotive;
Future<void> updateMotives() async {
if (_busy) return;
@@ -50,6 +51,7 @@ class BadgeMotiveViewModel extends ChangeNotifier {
await _motivSelect.setCurrentMotive(motive);
logger.t("<Set motive to ${motive.id}");
_busy = false;
+ currentMotive = motive;
notifyListeners();
}
}