Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(desktop-gpui): keep a permission's success card on screen after its grant
Richie McIlroy3f0ece5ba950
diff --git a/apps/desktop-gpui/src/onboarding_window/stage.rs b/apps/desktop-gpui/src/onboarding_window/stage.rsindex ee437da59..ce56cd9e6 100644--- a/apps/desktop-gpui/src/onboarding_window/stage.rs+++ b/apps/desktop-gpui/src/onboarding_window/stage.rs@@ -219,7 +219,12 @@ impl OnboardingWindow {if self.stage.waiting_on == Some(permission) {self.stage.waiting_on = None;}- if self.current_stage() == Stage::Permission(permission) {+ // The grant already moved `current_stage` on to the next missing+ // permission, so the card the user was looking at is the shown one.+ let on_screen = self.stage.shown.map(|(stage, _)| stage);+ if on_screen == Some(Stage::Permission(permission))+ || self.current_stage() == Stage::Permission(permission)+ {self.stage.focused = Some(permission);self.stage.advance = Some(cx.spawn_in(window, async move |this, cx| {cx.background_executor().timer(ADVANCE_AFTER).await;