mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
indicate which accounts are scanned in info dialog
This commit is contained in:
parent
18a1e82dda
commit
a7aafa27d0
1 changed files with 3 additions and 3 deletions
|
@ -485,7 +485,7 @@ public class SettingsController extends WalletFormController implements Initiali
|
||||||
walletDiscoveryService.setOnSucceeded(event -> {
|
walletDiscoveryService.setOnSucceeded(event -> {
|
||||||
addAndEncryptAccounts(masterWallet, walletDiscoveryService.getValue(), key);
|
addAndEncryptAccounts(masterWallet, walletDiscoveryService.getValue(), key);
|
||||||
if(walletDiscoveryService.getValue().isEmpty()) {
|
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 -> {
|
walletDiscoveryService.setOnFailed(event -> {
|
||||||
|
@ -518,7 +518,7 @@ public class SettingsController extends WalletFormController implements Initiali
|
||||||
walletDiscoveryService.setOnSucceeded(event -> {
|
walletDiscoveryService.setOnSucceeded(event -> {
|
||||||
addAndSaveAccounts(masterWallet, walletDiscoveryService.getValue());
|
addAndSaveAccounts(masterWallet, walletDiscoveryService.getValue());
|
||||||
if(walletDiscoveryService.getValue().isEmpty()) {
|
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 -> {
|
walletDiscoveryService.setOnFailed(event -> {
|
||||||
|
@ -538,7 +538,7 @@ public class SettingsController extends WalletFormController implements Initiali
|
||||||
if(optDiscoveredKeystores.isPresent()) {
|
if(optDiscoveredKeystores.isPresent()) {
|
||||||
Map<StandardAccount, Keystore> discoveredKeystores = optDiscoveredKeystores.get();
|
Map<StandardAccount, Keystore> discoveredKeystores = optDiscoveredKeystores.get();
|
||||||
if(discoveredKeystores.isEmpty()) {
|
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 {
|
} else {
|
||||||
for(Map.Entry<StandardAccount, Keystore> entry : discoveredKeystores.entrySet()) {
|
for(Map.Entry<StandardAccount, Keystore> entry : discoveredKeystores.entrySet()) {
|
||||||
Wallet childWallet = masterWallet.addChildWallet(entry.getKey());
|
Wallet childWallet = masterWallet.addChildWallet(entry.getKey());
|
||||||
|
|
Loading…
Reference in a new issue