fixed navigation disappearing after restore

This commit is contained in:
Schnitzel5 2025-08-07 00:51:39 +02:00
parent d0974a1da6
commit bb1ba2f3bb

View file

@ -254,7 +254,6 @@ void restoreBackup(Ref ref, Map<String, dynamic> backup, {bool full = true}) {
isar.customButtons.putAllSync(customButtons);
}
_invalidateCommonState(ref);
ref.read(routerCurrentLocationStateProvider.notifier).refresh();
}
});
} catch (e) {
@ -540,6 +539,7 @@ void _invalidateCommonState(Ref ref) {
ref.invalidate(extensionsRepoStateProvider(ItemType.manga));
ref.invalidate(extensionsRepoStateProvider(ItemType.anime));
ref.invalidate(extensionsRepoStateProvider(ItemType.novel));
ref.read(routerCurrentLocationStateProvider.notifier).refresh();
}
Status _convertStatusFromTachiBk(int idx) {