From 146945fc7ad596ca9fc9f3553fee2c852724c69c Mon Sep 17 00:00:00 2001 From: temidaradev Date: Tue, 24 Nov 2026 00:20:41 +0300 Subject: [PATCH] kopuz/onboarding: say when going back could not remove the new source --- apps/kopuz/onboarding/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/kopuz/onboarding/src/lib.rs b/apps/kopuz/onboarding/src/lib.rs index f67e2f44d..1113e4100 100644 --- a/apps/kopuz/onboarding/src/lib.rs +++ b/apps/kopuz/onboarding/src/lib.rs @@ -451,10 +451,12 @@ impl FirstRun { Ok(()) }); cx.spawn(async move |_, cx| { - if let Err(error) = call.await { - tracing::warn!(%error, "could not take the guide's source away again"); - } + let result = call.await; cx.update(|cx| { + if let Err(error) = &result { + tracing::warn!(%error, "could not take the guide's source away again"); + store::Notices::failed(error, cx); + } SourcesModel::global(cx).update(cx, |sources, cx| sources.refetch(cx)); ConfigModel::global(cx).update(cx, |config, cx| config.reload(cx)); });