subscribe node module to notifications

This commit is contained in:
Iuri Matias 2020-05-19 17:00:04 -04:00
parent 755fd6056b
commit 6a4c50fe9c
2 changed files with 14 additions and 3 deletions

View File

@ -51,8 +51,9 @@ proc mainProc() =
signalController.init()
signalController.addSubscriber(SignalType.Wallet, wallet)
signalController.addSubscriber(SignalType.Wallet, node)
signalController.addSubscriber(SignalType.Message, chat)
engine.setRootContextProperty("signals", signalController.variant)
appState.subscribe(proc () =

View File

@ -29,9 +29,19 @@ SplitView {
anchors.top: parent.top
anchors.topMargin: 0
RowLayout {
ColumnLayout {
id: messageContainer
Layout.fillHeight: true
Text {
id: testDescription
color: Theme.lightBlueText
text: "latest block (auto updates):"
Layout.fillWidth: true
anchors.left: walletAmountValue.right
anchors.leftMargin: 5
font.weight: Font.Medium
font.pixelSize: 20
}
Text {
id: test
color: Theme.lightBlueText
@ -40,7 +50,7 @@ SplitView {
anchors.left: walletAmountValue.right
anchors.leftMargin: 5
font.weight: Font.Medium
font.pixelSize: 30
font.pixelSize: 20
}
}