Skip to content

Commit

Permalink
feat: fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jincheng.zhang committed Apr 7, 2024
1 parent 12bade0 commit 0dec0fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/netpurr/src/panels/test_group_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ impl TestGroupPanel {
config_data: &mut ConfigData,
ui: &mut Ui,
) {
if workspace_data.selected_test_item.is_none(){
self.selected_test_item = None;
}
if self.selected_test_item.is_none() {
self.selected_test_item = workspace_data.selected_test_item.clone();
}
Expand Down
1 change: 1 addition & 0 deletions crates/netpurr/src/widgets/matrix_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl MatrixLabel {
});
});
if response.clicked() {
workspace_data.selected_test_item=None;
config_data.set_select_collection(Some(collection_name.clone()));
}
}
Expand Down

0 comments on commit 0dec0fb

Please sign in to comment.