[mob] Minor fix to reflect correct status for indexing

This commit is contained in:
Neeraj Gupta
2024-05-14 16:42:13 +05:30
parent d6599f178b
commit e4dcdeb030
3 changed files with 6 additions and 2 deletions

View File

@@ -228,13 +228,13 @@ class MagicSearchIndexStatsWidget extends StatefulWidget {
class _MagicSearchIndexStatsWidgetState
extends State<MagicSearchIndexStatsWidget> {
IndexStatus? _status;
late StreamSubscription<EmbeddingUpdatedEvent> _eventSubscription;
late StreamSubscription<EmbeddingCacheUpdatedEvent> _eventSubscription;
@override
void initState() {
super.initState();
_eventSubscription =
Bus.instance.on<EmbeddingUpdatedEvent>().listen((event) {
Bus.instance.on<EmbeddingCacheUpdatedEvent>().listen((event) {
_fetchIndexStatus();
});
_fetchIndexStatus();