Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop-gpui): keep Check for Update usable while an update prompt waits for a recording

Richie McIlroybcfff4d45b7f
diff --git a/apps/desktop-gpui/src/updates.rs b/apps/desktop-gpui/src/updates.rs
index c310fe9ac..70615f186 100644
--- a/apps/desktop-gpui/src/updates.rs
+++ b/apps/desktop-gpui/src/updates.rs
@@ -532,6 +532,11 @@ pub(crate) fn schedule_startup_check(cx: &mut App) {
// check holds it until a recording, export, import or
// transcription has finished rather than interrupting it.
let mut superseded = false;
+ if holds_scheduled_prompt(manual, cx.update(work_in_flight)) {
+ // Leave the menu's Check for Update row usable for the length
+ // of a recording; a manual check replaces the held prompt.
+ cx.update(|cx| set_status(UpdateStatus::Idle, cx));
+ }
while holds_scheduled_prompt(manual, cx.update(work_in_flight)) {
let timer = cx.background_executor().timer(BUSY_RETRY_DELAY);
let request = requests.recv_async();