diff --git a/src/main/java/com/_0xceba/BurpVariablesTab.java b/src/main/java/com/_0xceba/BurpVariablesTab.java index 8b7d4b4..f6e1a90 100644 --- a/src/main/java/com/_0xceba/BurpVariablesTab.java +++ b/src/main/java/com/_0xceba/BurpVariablesTab.java @@ -497,14 +497,14 @@ private void setDefaultToolToggleSelections(){ private void importCSV(){ // Create a file chooser JFileChooser fileChooser = new JFileChooser(); - fileChooser.setDialogTitle("Import CSV file"); + fileChooser.setDialogTitle("Import variables from a CSV file"); // Set a file filter to show only .csv files FileNameExtensionFilter filter = new FileNameExtensionFilter("CSV files", "csv"); fileChooser.setFileFilter(filter); - // Open a save dialog window and wait for the user to select a file or cancel - int userSelection = fileChooser.showSaveDialog(null); + // Open an open dialog window and wait for the user to select a file or cancel + int userSelection = fileChooser.showOpenDialog(null); // If the user selected a file to save if (userSelection == JFileChooser.APPROVE_OPTION) {