Skip checking for updates when an update has already been installed

This commit is contained in:
Antonio Scandurra 2022-04-05 10:18:37 +02:00
parent 4adb245771
commit 4a5c49eb6e

View file

@ -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;
}