Skip checking for updates when an update has already been installed

Antonio Scandurra created

Change summary

crates/auto_update/src/auto_update.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/auto_update/src/auto_update.rs 🔗

@@ -105,7 +105,7 @@ impl AutoUpdater {
     }
 
     pub fn poll(&mut self, cx: &mut ModelContext<Self>) {
-        if self.pending_poll.is_some() {
+        if self.pending_poll.is_some() || self.status == AutoUpdateStatus::Updated {
             return;
         }