Skip to content

Commit

Permalink
Set the new config for TableViews when closing panel options menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kivimango committed Nov 1, 2023
1 parent 51df1b6 commit c74bbd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/user_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,16 +339,21 @@ impl UserInterface {
if dialog.request_config_change() {
let selected_menu_item = self.top_menu.selected_item();
match selected_menu_item {
// Left panel menu
0 => change_config(
dialog,
&mut self.left_panel,
&mut self.config,
ActivePanel::Left,
),
// Panel options
1 => {
dialog
.change_configuration(&mut self.config, self.active_panel);
self.left_panel.change_config(&self.config);
self.right_panel.change_config(&self.config);
}
// Right panel menu
2 => change_config(
dialog,
&mut self.right_panel,
Expand Down

0 comments on commit c74bbd9

Please sign in to comment.