renaming methods

This commit is contained in:
Armin Schrenk
2019-07-24 17:14:28 +02:00
parent 8d6cf9581b
commit b799ce34f6
2 changed files with 4 additions and 4 deletions

View File

@@ -46,12 +46,12 @@ public class ChooseExistingVaultController implements FxController {
}
@FXML
public void goBack() {
public void back() {
fxmlLoaders.setScene("/fxml/addvault_welcome.fxml", window);
}
@FXML
public void confirm() {
public void finish() {
//TODO: error handling & cannot unlock added vault
VaultSettings vaultSettings = VaultSettings.withRandomId();
vaultSettings.path().setValue(vaultPath.get());

View File

@@ -27,8 +27,8 @@
<Region VBox.vgrow="ALWAYS"/>
<ButtonBar buttonMinWidth="120" buttonOrder="B+I">
<buttons>
<Button text="TODO Back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#goBack"/>
<Button text="TODO Open" ButtonBar.buttonData="FINISH" onAction="#confirm" defaultButton="true"/>
<Button text="TODO Back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back"/>
<Button text="TODO Open" ButtonBar.buttonData="FINISH" onAction="#finish" defaultButton="true"/>
</buttons>
</ButtonBar>
</children>