From c1f0dbbc136aa39436a3bf56ff3be5b9cdbcd835 Mon Sep 17 00:00:00 2001 From: Daniel Leech Date: Wed, 4 Dec 2024 21:36:10 +0000 Subject: [PATCH] Reload activities after conversion but before segments --- src/sync/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync/convert.rs b/src/sync/convert.rs index 1bcf6f9..fb7f35f 100644 --- a/src/sync/convert.rs +++ b/src/sync/convert.rs @@ -168,10 +168,10 @@ impl ActivityConverter<'_> { .await?; } } + self.event_sender.send(InputEvent::Reload).await?; self.logger.info("Updating segments".to_string()).await; self.update_segments(&segments).await.unwrap(); self.logger.info("Done converting".to_string()).await; - self.event_sender.send(InputEvent::Reload).await?; Ok(()) }