crates/settings_ui/src/settings_ui.rs 🔗
@@ -719,6 +719,7 @@ impl SettingsWindow {
return;
}
self.current_file = self.files[ix].clone();
+ self.navbar_entry = 0;
self.build_ui(cx);
}
Anthony Eid and dino created
The panic happened because navbar index wasn't updated when changing
files.
Release Notes:
- N/A
Co-authored-by: dino <dinojoaocosta@gmail.com>
crates/settings_ui/src/settings_ui.rs | 1 +
1 file changed, 1 insertion(+)
@@ -719,6 +719,7 @@ impl SettingsWindow {
return;
}
self.current_file = self.files[ix].clone();
+ self.navbar_entry = 0;
self.build_ui(cx);
}