diff --git a/plugins/updater/src/lib.rs b/plugins/updater/src/lib.rs index f69cb7f1..11aa5d7b 100644 --- a/plugins/updater/src/lib.rs +++ b/plugins/updater/src/lib.rs @@ -131,7 +131,7 @@ pub struct Builder { target: Option, pubkey: Option, installer_args: Vec, - version_comparator: Option, + default_version_comparator: Option, } impl Builder { @@ -172,18 +172,18 @@ impl Builder { self } - pub fn version_comparator bool + Send + Sync + 'static>( + pub fn default_version_comparator bool + Send + Sync + 'static>( mut self, f: F, ) -> Self { - self.version_comparator.replace(Arc::new(f)); + self.default_version_comparator.replace(Arc::new(f)); self } pub fn build(self) -> TauriPlugin { let pubkey = self.pubkey; let target = self.target; - let version_comparator = self.version_comparator; + let version_comparator = self.default_version_comparator; let installer_args = self.installer_args; PluginBuilder::::new("updater") .setup(move |app, api| {