Update release notes pref only after popping

This commit is contained in:
Tommy Chow 2024-08-13 18:36:03 -07:00
parent 0ce36dc5cf
commit 68dce429ee

View file

@ -40,9 +40,7 @@ class _HomeState extends State<Home> {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const ReleaseNotes()),
);
await prefs.setString('last_shown_version', currentVersion);
).then((_) => prefs.setString('last_shown_version', currentVersion));
}
}