Skip to content

Commit

Permalink
Improved minor things
Browse files Browse the repository at this point in the history
  • Loading branch information
Géry CASIEZ committed Aug 28, 2017
1 parent a0ae49d commit 889ae0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
9 changes: 7 additions & 2 deletions src/cpp/paramtuner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

}
Binary file modified src/gui/src/main/deploy/package/windows/ParamTunerGUI.ico
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down Expand Up @@ -213,8 +213,7 @@ public void start(Stage primaryStage) throws Exception {

saveThread.start();

if (filepath != "")
loadFile(filepath);
loadFile(filepath);

stage.show();
}
Expand Down Expand Up @@ -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;
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 889ae0e

Please sign in to comment.