settings ui: Fix panic that occurred when changing the selected settings file (#39293)

The panic happened because navbar index wasn't updated when changing
files.

Release Notes:

- N/A

Co-authored-by: dino <dinojoaocosta@gmail.com>
This commit is contained in:
Anthony Eid
2025-10-01 14:54:06 -04:00
committed by GitHub
co-authored by dino
parent 6b907bd102
commit 3314de8175
+1
View File
@@ -719,6 +719,7 @@ impl SettingsWindow {
return;
}
self.current_file = self.files[ix].clone();
self.navbar_entry = 0;
self.build_ui(cx);
}