added comment to explain code that sets shorteningThreshold to 0

removed unnecessary introduction text
This commit is contained in:
Jan-Peter Klein
2023-07-11 14:10:26 +02:00
parent f25afb720f
commit eebba45909
3 changed files with 3 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ public class CreateNewVaultExpertSettingsController implements FxController {
int intValue = Integer.parseInt(newValue);
shorteningThreshold.set(intValue);
} catch (NumberFormatException e) {
shorteningThreshold.set(0);
shorteningThreshold.set(0); //the value is set to 0 to ensure that an invalid value assignment is detected during a NumberFormatException
}
});
}

View File

@@ -25,15 +25,14 @@
</padding>
<children>
<Region prefHeight="12" VBox.vgrow="NEVER"/>
<Label text="%addvaultwizard.new.expertSettings.summary.introduction" wrapText="true"/>
<Label fx:id="vaultNameLabel" alignment="CENTER_RIGHT" graphicTextGap="6" wrapText="true">
<graphic>
<FontAwesome5IconView styleClass="glyph-icon-muted" glyph="PENCIL"/>
<FontAwesome5IconView styleClass="glyph-icon-muted" wrappingWidth="12" glyph="PENCIL"/>
</graphic>
</Label>
<Label fx:id="vaultPathLabel" alignment="CENTER_RIGHT" graphicTextGap="6" wrapText="true">
<graphic>
<FontAwesome5IconView styleClass="glyph-icon-muted" glyph="HDD"/>
<FontAwesome5IconView styleClass="glyph-icon-muted" wrappingWidth="12" glyph="HDD"/>
</graphic>
</Label>
<Region prefHeight="12" VBox.vgrow="NEVER"/>

View File

@@ -59,7 +59,6 @@ addvaultwizard.new.expertSettings.shorteningThreshold.message=Enter a value betw
addvaultwizard.new.expertSettings.shorteningThreshold.tooltip=Open the documentation to learn more.
addvaultwizard.new.expertSettings.shorteningThreshold.title=Maximum length of encrypted file names
addvaultwizard.new.expertSettings.shorteningThreshold.valid=Valid
addvaultwizard.new.expertSettings.summary.introduction=This is a quick summary of your vault information
addvaultwizard.new.fileAlreadyExists=A file or directory with the vault name already exists
addvaultwizard.new.locationDoesNotExist=A directory in the specified path does not exist or cannot be accessed
addvaultwizard.new.locationIsNotWritable=No write access at the specified path