From f097f17c1f50b537a1566a68b0aa19c0318584f1 Mon Sep 17 00:00:00 2001 From: 0xceba <44234156+0xceba@users.noreply.github.com> Date: Sun, 29 Dec 2024 13:43:54 -0800 Subject: [PATCH] Modify import file chooser --- src/main/java/com/_0xceba/BurpVariablesTab.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {