From 1cabc7daaa7964b2a79c3ef381321552dae73fbf Mon Sep 17 00:00:00 2001 From: David Gerber Date: Wed, 14 Feb 2024 18:22:27 +0100 Subject: [PATCH] Improve UI of account creation Disable the backup button while creating the profile. --- .../AccountCreationWindowController.java | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/ui/src/main/java/io/xeres/ui/controller/account/AccountCreationWindowController.java b/ui/src/main/java/io/xeres/ui/controller/account/AccountCreationWindowController.java index 078dfa8ab..1df2b5c55 100644 --- a/ui/src/main/java/io/xeres/ui/controller/account/AccountCreationWindowController.java +++ b/ui/src/main/java/io/xeres/ui/controller/account/AccountCreationWindowController.java @@ -135,20 +135,11 @@ private String sanitizeHostname(String hostname) private void setInProgress(boolean inProgress) { - if (inProgress) - { - okButton.setDisable(true); - profileName.setDisable(true); - locationName.setDisable(true); - progress.setVisible(true); - } - else - { - okButton.setDisable(false); - profileName.setDisable(false); - locationName.setDisable(false); - progress.setVisible(false); - } + okButton.setDisable(inProgress); + profileName.setDisable(inProgress); + locationName.setDisable(inProgress); + importBackup.setDisable(inProgress); + progress.setVisible(inProgress); } public void generateProfileAndLocation(String profileName, String locationName)