mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add listeners at init
Remove duplicated listener registration Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
bc91914cb0
commit
aa514b37da
@ -69,9 +69,6 @@ public class DaoPresentation implements DaoStateListener, DaoStateMonitoringServ
|
||||
}
|
||||
});
|
||||
|
||||
daoStateService.addDaoStateListener(this);
|
||||
daoStateMonitoringService.addListener(this);
|
||||
|
||||
walletChainHeightListener = (observable, oldValue, newValue) -> onUpdateAnyChainHeight();
|
||||
}
|
||||
|
||||
@ -84,6 +81,7 @@ public class DaoPresentation implements DaoStateListener, DaoStateMonitoringServ
|
||||
|
||||
btcWalletService.getChainHeightProperty().addListener(walletChainHeightListener);
|
||||
daoStateService.addDaoStateListener(this);
|
||||
daoStateMonitoringService.addListener(this);
|
||||
|
||||
onUpdateAnyChainHeight();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user