From ee4d1acb13b037c2fba3938c138fe88739b2f769 Mon Sep 17 00:00:00 2001 From: tiziodcaio Date: Mon, 22 Jan 2024 18:15:25 +0100 Subject: [PATCH] Always uninstall after trying to link it Because otherwise it will fail due to existance of old files --- native/src/components/runtime.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/native/src/components/runtime.rs b/native/src/components/runtime.rs index 5b8feb63..7cc99bd5 100644 --- a/native/src/components/runtime.rs +++ b/native/src/components/runtime.rs @@ -296,9 +296,7 @@ impl Runtime { let dirs = ProjectDirs::new()?; let mut storage = Storage::load(&dirs)?; - if !storage.config.use_linked_runtime { - self.uninstall()?; - } + self.uninstall()?; storage.config.use_linked_runtime = true; storage.write(&dirs)?;