mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-01-26 02:11:10 +00:00
disable broadcast progress bar if disconnected, and re-enable if connected again
This commit is contained in:
parent
f4acd3e587
commit
29ac15846d
1 changed files with 13 additions and 0 deletions
|
@ -1647,6 +1647,19 @@ public class HeadersController extends TransactionFormController implements Init
|
|||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void connection(ConnectionEvent event) {
|
||||
broadcastProgressBar.setDisable(false);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void disconnection(DisconnectionEvent event) {
|
||||
broadcastProgressBar.setDisable(true);
|
||||
if(broadcastProgressBar.getProgress() < 0) {
|
||||
broadcastProgressBar.setProgress(0);
|
||||
}
|
||||
}
|
||||
|
||||
private static class WalletSignComparator implements Comparator<Wallet> {
|
||||
private static final List<KeystoreSource> sourceOrder = List.of(KeystoreSource.SW_WATCH, KeystoreSource.HW_AIRGAPPED, KeystoreSource.HW_USB, KeystoreSource.SW_SEED);
|
||||
|
||||
|
|
Loading…
Reference in a new issue