Skip to content

Commit a2d0551

Browse files
committed
Fix saving presets (#168, #169, #170); Release v2.5.2
1 parent 5ca4e18 commit a2d0551

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

blobsaver.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "blobsaver"
5-
#define MyAppVersion "2.5.0"
5+
#define MyAppVersion "2.5.2"
66
#define MyAppPublisher "airsquared"
77
#define MyAppURL "https://www.github.com/airsquared/blobsaver"
88
#define MyAppExeName "blobsaver.exe"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sourceCompatibility = 1.8
3232
* - Main.java
3333
* - blobsaver.iss
3434
*/
35-
String appVersion = "v2.5.0";
35+
String appVersion = "v2.5.2"
3636

3737
repositories {
3838
mavenCentral()

src/main/java/com/airsquared/blobsaver/Controller.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private void savePreset(int preset) {
385385
textInputDialog.showAndWait();
386386

387387
String result = textInputDialog.getResult();
388-
if (Shared.isEmptyOrNull(result)) {
388+
if (!Shared.isEmptyOrNull(result)) {
389389
appPrefs.put("Name Preset" + preset, textInputDialog.getResult());
390390
((Button) primaryStage.getScene().lookup("#preset" + preset)).setText("Save in " + textInputDialog.getResult());
391391
} else {
@@ -706,7 +706,7 @@ public void chooseTimeToRunHandler() {
706706
hBox.getChildren().addAll(textField, choiceBox);
707707
alert.getDialogPane().setContent(hBox);
708708
alert.showAndWait();
709-
if ((alert.getResult() != null) && !ButtonType.CANCEL.equals(alert.getResult()) && !Shared.isEmptyOrNull(textField.getText()) && Shared.isEmptyOrNull(choiceBox.getValue())) {
709+
if ((alert.getResult() != null) && !ButtonType.CANCEL.equals(alert.getResult()) && !Shared.isEmptyOrNull(textField.getText()) && !Shared.isEmptyOrNull(choiceBox.getValue())) {
710710
appPrefs.putInt("Time to run", Integer.parseInt(textField.getText()));
711711
appPrefs.put("Time unit for background", choiceBox.getValue());
712712
} else {

src/main/java/com/airsquared/blobsaver/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
public class Main {
4040

41-
static final String appVersion = "v2.5.0";
41+
static final String appVersion = "v2.5.2";
4242
static final Preferences appPrefs = Preferences.userRoot().node("airsquared/blobsaver/prefs");
4343
static Stage primaryStage;
4444
static final File jarDirectory;

0 commit comments

Comments
 (0)