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:
@@ -719,6 +719,7 @@ impl SettingsWindow {
|
||||
return;
|
||||
}
|
||||
self.current_file = self.files[ix].clone();
|
||||
self.navbar_entry = 0;
|
||||
self.build_ui(cx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user