diff --git a/pom.xml b/pom.xml index 08d6461..88f0db3 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.andrewlalis perfin - 1.12.0 + 1.12.1 21 diff --git a/scripts/package-linux-deb.sh b/scripts/package-linux-deb.sh index 6021140..6f1b65c 100755 --- a/scripts/package-linux-deb.sh +++ b/scripts/package-linux-deb.sh @@ -24,7 +24,7 @@ module_path="$module_path:target/modules/h2-2.2.224.jar" jpackage \ --name "Perfin" \ - --app-version "1.11.0" \ + --app-version "1.12.1" \ --description "Desktop application for personal finance. Add your accounts, track transactions, and store receipts, invoices, and more." \ --icon design/perfin-logo_256.png \ --vendor "Andrew Lalis" \ diff --git a/scripts/package-windows-msi.ps1 b/scripts/package-windows-msi.ps1 index 8369bb9..93ba45b 100644 --- a/scripts/package-windows-msi.ps1 +++ b/scripts/package-windows-msi.ps1 @@ -12,7 +12,7 @@ $modulePath = "$modulePath;target\modules\h2-2.2.224.jar" jpackage ` --name "Perfin" ` - --app-version "1.11.0" ` + --app-version "1.12.1" ` --description "Desktop application for personal finance. Add your accounts, track transactions, and store receipts, invoices, and more." ` --icon design\perfin-logo_256.ico ` --vendor "Andrew Lalis" ` diff --git a/src/main/java/com/andrewlalis/perfin/control/EditTransactionController.java b/src/main/java/com/andrewlalis/perfin/control/EditTransactionController.java index 2f44e97..a806c97 100644 --- a/src/main/java/com/andrewlalis/perfin/control/EditTransactionController.java +++ b/src/main/java/com/andrewlalis/perfin/control/EditTransactionController.java @@ -348,7 +348,7 @@ public class EditTransactionController implements RouteSelectionListener { } }); AsyncValidationFunction validationFunction = info -> { - if (info == null) return CompletableFuture.completedFuture(ValidationResult.valid()); + if (info == null || transaction != null) return CompletableFuture.completedFuture(ValidationResult.valid()); return Profile.getCurrent().dataSource().mapRepoAsync( TransactionRepository.class, repo -> repo.findDuplicates(info.timestamp(), info.amount(), info.currency()) diff --git a/src/main/resources/main-view.fxml b/src/main/resources/main-view.fxml index 023a7ff..a4cadb9 100644 --- a/src/main/resources/main-view.fxml +++ b/src/main/resources/main-view.fxml @@ -27,7 +27,7 @@ -