indicate which accounts are scanned in info dialog

This commit is contained in:
Craig Raw 2021-11-12 10:07:53 +02:00
parent 18a1e82dda
commit a7aafa27d0

View file

@ -485,7 +485,7 @@ public class SettingsController extends WalletFormController implements Initiali
walletDiscoveryService.setOnSucceeded(event -> {
addAndEncryptAccounts(masterWallet, walletDiscoveryService.getValue(), key);
if(walletDiscoveryService.getValue().isEmpty()) {
AppServices.showAlertDialog("No Accounts Found", "No new accounts with existing transactions were found.", Alert.AlertType.INFORMATION, ButtonType.OK);
AppServices.showAlertDialog("No Accounts Found", "No new accounts with existing transactions were found. Note only the first 10 accounts are scanned.", Alert.AlertType.INFORMATION, ButtonType.OK);
}
});
walletDiscoveryService.setOnFailed(event -> {
@ -518,7 +518,7 @@ public class SettingsController extends WalletFormController implements Initiali
walletDiscoveryService.setOnSucceeded(event -> {
addAndSaveAccounts(masterWallet, walletDiscoveryService.getValue());
if(walletDiscoveryService.getValue().isEmpty()) {
AppServices.showAlertDialog("No Accounts Found", "No new accounts with existing transactions were found.", Alert.AlertType.INFORMATION, ButtonType.OK);
AppServices.showAlertDialog("No Accounts Found", "No new accounts with existing transactions were found. Note only the first 10 accounts are scanned.", Alert.AlertType.INFORMATION, ButtonType.OK);
}
});
walletDiscoveryService.setOnFailed(event -> {
@ -538,7 +538,7 @@ public class SettingsController extends WalletFormController implements Initiali
if(optDiscoveredKeystores.isPresent()) {
Map<StandardAccount, Keystore> discoveredKeystores = optDiscoveredKeystores.get();
if(discoveredKeystores.isEmpty()) {
AppServices.showAlertDialog("No Accounts Found", "No new accounts with existing transactions were found.", Alert.AlertType.INFORMATION, ButtonType.OK);
AppServices.showAlertDialog("No Accounts Found", "No new accounts with existing transactions were found. Note only the first 10 accounts are scanned.", Alert.AlertType.INFORMATION, ButtonType.OK);
} else {
for(Map.Entry<StandardAccount, Keystore> entry : discoveredKeystores.entrySet()) {
Wallet childWallet = masterWallet.addChildWallet(entry.getKey());