mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
fix: always set whats new flag
This commit is contained in:
@@ -300,15 +300,15 @@ Future<void> postInit(BuildContext context, Ref ref, bool appStart) async {
|
||||
if (!ref.read(persistenceProvider).isFirstAppStart) {
|
||||
WhatsNewPage? whatsNew = WhatsNewPage.fromLastVersion(lastVersion: ref.read(persistenceProvider).getWhatsNew());
|
||||
if (whatsNew != null) {
|
||||
await ref.future(versionProvider).then((version) async {
|
||||
await ref.read(persistenceProvider).setWhatsNew(version.version);
|
||||
});
|
||||
|
||||
// ignore: unawaited_futures
|
||||
ref.global.dispatchAsync(NavigateAction.push(whatsNew));
|
||||
}
|
||||
}
|
||||
|
||||
await ref.future(versionProvider).then((version) async {
|
||||
await ref.read(persistenceProvider).setWhatsNew(version.version);
|
||||
});
|
||||
|
||||
// [FOSS_REMOVE_START]
|
||||
if (checkPlatformSupportPayment()) {
|
||||
// ignore: unawaited_futures
|
||||
|
||||
Reference in New Issue
Block a user