diff --git a/src/cpp/paramtuner.cpp b/src/cpp/paramtuner.cpp index 329ddce..16a6cbe 100644 --- a/src/cpp/paramtuner.cpp +++ b/src/cpp/paramtuner.cpp @@ -185,8 +185,13 @@ namespace ParamTuner { someParametersChanged = false; } } - else - cerr << "libParamTuner update() call is useless unless useUpdateFunc parameter in load function is set to true"; + else { + static bool once = true; + if (once) { + cerr << "libParamTuner update() call is useless unless useUpdateFunc parameter in load function is set to true" << std::endl; + once = false; + } + } } } diff --git a/src/gui/src/main/deploy/package/windows/ParamTunerGUI.ico b/src/gui/src/main/deploy/package/windows/ParamTunerGUI.ico index ae761c4..b7f38ec 100644 Binary files a/src/gui/src/main/deploy/package/windows/ParamTunerGUI.ico and b/src/gui/src/main/deploy/package/windows/ParamTunerGUI.ico differ diff --git a/src/gui/src/main/java/fr/univ_lille1/libparamtuner/gui/MainFrame.java b/src/gui/src/main/java/fr/univ_lille1/libparamtuner/gui/MainFrame.java index ea8cd24..a5d3469 100644 --- a/src/gui/src/main/java/fr/univ_lille1/libparamtuner/gui/MainFrame.java +++ b/src/gui/src/main/java/fr/univ_lille1/libparamtuner/gui/MainFrame.java @@ -173,7 +173,7 @@ public void start(Stage primaryStage) throws Exception { Alert alert = new Alert(AlertType.INFORMATION); alert.setTitle("About"); alert.setHeaderText(null); - alert.setContentText("ParamTunerGUI version 1.0\n\nParamTunerGUI is part of libParamTuner\nGet more information on https://github.com/casiez/libparamtuner"); + alert.setContentText("ParamTunerGUI version 1.1\n\nParamTunerGUI is part of libParamTuner\nGet more information on https://github.com/casiez/libparamtuner"); alert.showAndWait(); }); @@ -213,8 +213,7 @@ public void start(Stage primaryStage) throws Exception { saveThread.start(); - if (filepath != "") - loadFile(filepath); + loadFile(filepath); stage.show(); } @@ -260,7 +259,7 @@ private void getCurrentFilename(String filepath) { private boolean confirmSaveBeforeClosingFile() { if (saved) return true; - String ret = FXDialogUtils.showConfirmDialog("Save current file ?", null, "Do you want to save the current file ?", + String ret = FXDialogUtils.showConfirmDialog("Save current file ?", null, "Do you want to save the current file?", "Yes", "No", "Cancel"); if (ret == null || ret.equals("Cancel")) return false; @@ -272,7 +271,7 @@ private boolean confirmSaveBeforeClosingFile() { public void loadFile(String path) { if (path.trim().isEmpty()) { - String value = FXDialogUtils.showConfirmDialog("Error", null, "Path not specified. Do you want to explore ?", "Yes", "No"); + String value = FXDialogUtils.showConfirmDialog("Error", null, "Path not specified. Do you want to open?", "Yes", "No"); if ("Yes".equals(value)) { File f = fileChooser.showOpenDialog(stage); if (f != null) @@ -306,7 +305,7 @@ public void loadFile(String path) { } catch (Exception e) { e.printStackTrace(); clearConfigEntries(); - String value = FXDialogUtils.showConfirmDialog("Unable to load the file", "Path: " + path, e.getMessage()+"\n\nDo you want to explore for an other file ?", "Yes", "No"); + String value = FXDialogUtils.showConfirmDialog("Unable to load the file", "Path: " + path, e.getMessage()+"\n\nDo you want to open another file?", "Yes", "No"); if ("Yes".equals(value)) { File f = fileChooser.showOpenDialog(stage); if (f != null)