Minor UI change

This commit is contained in:
obscuren 2014-02-25 10:55:44 +01:00
parent 78b6e7ad95
commit 6451a7187a
2 changed files with 11 additions and 1 deletions

View File

@ -40,6 +40,8 @@ func (lib *EthLib) CreateTx(receiver, a, data string) string {
if len(receiver) == 0 { if len(receiver) == 0 {
ethutil.Config.Log.Infof("Contract addr %x", tx.Hash()[12:]) ethutil.Config.Log.Infof("Contract addr %x", tx.Hash()[12:])
} else {
ethutil.Config.Log.Infof("Tx hash %x", tx.Hash())
} }
return ethutil.Hex(tx.Hash()) return ethutil.Hex(tx.Hash())

View File

@ -221,6 +221,10 @@ ApplicationWindow {
text: "Import App" text: "Import App"
} }
Label {
id: walletValueLabel
}
Label { Label {
anchors.right: peerImage.left anchors.right: peerImage.left
anchors.rightMargin: 5 anchors.rightMargin: 5
@ -270,7 +274,7 @@ ApplicationWindow {
text: "Add" text: "Add"
onClicked: { onClicked: {
ui.connectToPeer(addrField.text) ui.connectToPeer(addrField.text)
addrPeerWin.visible = false addPeerWin.visible = false
} }
} }
} }
@ -291,6 +295,10 @@ ApplicationWindow {
} }
function setWalletValue(value) {
walletValueLabel.text = value
}
function addTx(tx) { function addTx(tx) {
txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value}) txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value})
} }