From d9bada4737bb20a533da01adc389c555f36f74eb Mon Sep 17 00:00:00 2001 From: Commander07 <45269106+Commander07@users.noreply.github.com> Date: Fri, 17 May 2024 12:40:29 +0200 Subject: [PATCH] fix local features being incorrect after install --- Cargo.toml | 2 +- src/gui.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7458a10..e4d2606 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "installer" -version = "1.1.0" +version = "1.1.1" edition = "2021" build = "build.rs" diff --git a/src/gui.rs b/src/gui.rs index 3f6db29..6222075 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -561,7 +561,7 @@ fn Version(mut props: VersionProps) -> Element { let mut credits = use_signal(|| false); let mut installed = use_signal(|| installer_profile.installed); let mut update_available = use_signal(|| installer_profile.update_available); - let local_features = use_signal(|| { + let mut local_features = use_signal(|| { if let Some(manifest) = installer_profile.local_manifest.clone() { Some(manifest.enabled_features) } else { @@ -575,6 +575,7 @@ fn Version(mut props: VersionProps) -> Element { installing.set(true); installer_profile.enabled_features = enabled_features.read().clone(); installer_profile.manifest.enabled_features = enabled_features.read().clone(); + local_features.set(Some(enabled_features.read().clone())); if !*installed.read() { spinner_status.set("Installing...");