From d66c60dbb55ced91ca09cdf604ffc6bcc245afb6 Mon Sep 17 00:00:00 2001 From: Remco Bouckaert Date: Wed, 17 May 2023 09:46:54 +1200 Subject: [PATCH] fighting git #54 --- src/beastfx/app/tools/LogCombinerController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/beastfx/app/tools/LogCombinerController.java b/src/beastfx/app/tools/LogCombinerController.java index 0d2ebaf..bdf6371 100644 --- a/src/beastfx/app/tools/LogCombinerController.java +++ b/src/beastfx/app/tools/LogCombinerController.java @@ -1,7 +1,6 @@ package beastfx.app.tools; - import java.io.File; import java.net.URL; import java.util.List; @@ -76,9 +75,9 @@ public void initialize(URL location, ResourceBundle resources) { fileTypeCombo.getSelectionModel().select(0); browseButton.setOnAction(e -> { - File[] files = isTreeFiles() ? - FXUtils.getLoadFiles("Select log file", new File(ProgramStatus.g_sDir), "Trace or tree log files", "log", "trees") : - FXUtils.getLoadFiles("Select log file", new File(ProgramStatus.g_sDir), "Trace or tree log files", "trees", "log"); + File file = isTreeFiles() ? + FXUtils.getSaveFile("Select output file...", new File(ProgramStatus.g_sDir), "Beast log and tree files", "log", "trees") : + FXUtils.getSaveFile("Select output file...", new File(ProgramStatus.g_sDir), "Beast log and tree files", "trees", "log"); if (file == null) { // the dialog was cancelled... return;