Minor UI change

pull/21/head
obscuren 11 years ago
parent 78b6e7ad95
commit 6451a7187a
  1. 2
      ui/library.go
  2. 10
      wallet.qml

@ -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())

@ -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})
} }

Loading…
Cancel
Save