mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Add listeners at init
Remove duplicated listener registration Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
509b07d7dc
commit
a6208f10dd
1 changed files with 1 additions and 3 deletions
|
@ -69,9 +69,6 @@ public class DaoPresentation implements DaoStateListener, DaoStateMonitoringServ
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
daoStateService.addDaoStateListener(this);
|
|
||||||
daoStateMonitoringService.addListener(this);
|
|
||||||
|
|
||||||
walletChainHeightListener = (observable, oldValue, newValue) -> onUpdateAnyChainHeight();
|
walletChainHeightListener = (observable, oldValue, newValue) -> onUpdateAnyChainHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +81,7 @@ public class DaoPresentation implements DaoStateListener, DaoStateMonitoringServ
|
||||||
|
|
||||||
btcWalletService.getChainHeightProperty().addListener(walletChainHeightListener);
|
btcWalletService.getChainHeightProperty().addListener(walletChainHeightListener);
|
||||||
daoStateService.addDaoStateListener(this);
|
daoStateService.addDaoStateListener(this);
|
||||||
|
daoStateMonitoringService.addListener(this);
|
||||||
|
|
||||||
onUpdateAnyChainHeight();
|
onUpdateAnyChainHeight();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue