Fix bug with WIM indexing (again)

This commit is contained in:
2Shirt 2026-03-22 19:51:46 -07:00
parent 02880340f8
commit da38d3bff2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -234,16 +234,16 @@ impl App {
popup::Type::Info,
String::from("Updating boot configuration"),
))?;
let wim_index = self
let wim_file_index = self
.state
.wim_image_index
.expect("Failed to get source WIM index");
.wim_file_index
.expect("Failed to get source WIM file index");
let wim_sources = self
.state
.wim_sources
.lock()
.expect("Failed to get WIM Sources");
let wim_file = wim_sources.get_file(wim_index);
let wim_file = wim_sources.get_file(wim_file_index);
// Get System32 path
let system32 = get_system32_path(&self.action_tx);