gui(installer): clear checkbox if descriptor is changed

This commit is contained in:
jp1ac4 2024-02-02 10:23:43 +00:00
parent bc7f2e3f6b
commit 416dc9d2d8
No known key found for this signature in database
GPG Key ID: A7ACD32423568D7B

View File

@ -1515,7 +1515,10 @@ impl Step for BackupDescriptor {
Command::none()
}
fn load_context(&mut self, ctx: &Context) {
self.descriptor = ctx.descriptor.clone();
if self.descriptor != ctx.descriptor {
self.descriptor = ctx.descriptor.clone();
self.done = false;
}
}
fn view(&self, _hws: &HardwareWallets, progress: (usize, usize)) -> Element<Message> {
let desc = self.descriptor.as_ref().unwrap();