Skip to content

Commit

Permalink
fix local features being incorrect after install
Browse files Browse the repository at this point in the history
  • Loading branch information
Commander07 committed May 17, 2024
1 parent d236310 commit d9bada4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "installer"
version = "1.1.0"
version = "1.1.1"
edition = "2021"
build = "build.rs"

Expand Down
3 changes: 2 additions & 1 deletion src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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...");
Expand Down

0 comments on commit d9bada4

Please sign in to comment.