Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: conflict

tribhuwan-kumar6be7f7c16db3
diff --cc screenpipe-app-tauri/src-tauri/src/updates.rs
index 5895e08ec,c7c01beba..d159c3509
--- a/screenpipe-app-tauri/src-tauri/src/updates.rs
+++ b/screenpipe-app-tauri/src-tauri/src/updates.rs
@@@ -88,18 -73,10 +88,19 @@@ impl UpdatesManager
});
if rx.await? {
+
+ #[cfg(target_os = "windows")] {
+ self.update_menu_item.set_enabled(false)?;
+ self.update_menu_item
+ .set_text("downloading latest version of screenpipe")?;
+ update.download_and_install(|_, _| {}, || {}).await?;
+ *self.update_installed.lock().await = true;
++
+ self.update_menu_item.set_enabled(true)?;
+ self.update_menu_item.set_text("update now")?;
+ }
// Proceed with the update
- self.update_menu_item.set_enabled(false)?;
- self.update_menu_item
- .set_text("downloading latest version of screenpipe")?;
+
// i think it shouldn't kill if we're in dev mode (on macos, windows need to kill)
// bad UX: i use CLI and it kills my CLI because i updated app