Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test: pace the simulated download over eight seconds

Ilyacbbf26d0b8a5
diff --git a/apps/desktop-gpui/src/updates.rs b/apps/desktop-gpui/src/updates.rs
index f863524cf..7d24c88df 100644
--- a/apps/desktop-gpui/src/updates.rs
+++ b/apps/desktop-gpui/src/updates.rs
@@ -292,12 +292,9 @@ fn simulate_update(version: Version, cx: &mut App) {
cx,
);
cx.spawn(async move |cx| {
- cx.background_executor()
- .timer(Duration::from_millis(600))
- .await;
for step in 1..=10u8 {
cx.background_executor()
- .timer(Duration::from_millis(120))
+ .timer(Duration::from_millis(800))
.await;
cx.update(|cx| {
set_status(