Browse Source

small fixes

patch-4
Sander van Grieken 3 years ago
parent
commit
2b691c9216
  1. 3
      electrum/gui/qml/components/WalletMainView.qml
  2. 2
      electrum/gui/qml/components/Wallets.qml
  3. 4
      electrum/gui/qml/qefx.py
  4. 6
      electrum/gui/qml/qewallet.py

3
electrum/gui/qml/components/WalletMainView.qml

@ -81,13 +81,16 @@ Item {
currentIndex: swipeview.currentIndex
TabButton {
text: qsTr('Receive')
font.pixelSize: constants.fontSizeLarge
}
TabButton {
text: qsTr('History')
font.pixelSize: constants.fontSizeLarge
}
TabButton {
enabled: !Daemon.currentWallet.isWatchOnly
text: qsTr('Send')
font.pixelSize: constants.fontSizeLarge
}
Component.onCompleted: tabbar.setCurrentIndex(1)
}

2
electrum/gui/qml/components/Wallets.qml

@ -10,7 +10,7 @@ import "controls"
Pane {
id: rootItem
property string title: 'Wallets'
property string title: qsTr('Wallets')
ColumnLayout {
id: layout

4
electrum/gui/qml/qefx.py

@ -99,8 +99,8 @@ class QEFX(QObject):
else:
try:
sd = Decimal(satoshis)
if sd == 0:
return ''
#if sd == 0:
#return ''
except:
return ''
if plain:

6
electrum/gui/qml/qewallet.py

@ -225,15 +225,15 @@ class QEWallet(QObject):
balanceChanged = pyqtSignal()
@pyqtProperty(int, notify=balanceChanged)
@pyqtProperty('quint64', notify=balanceChanged)
def frozenBalance(self):
return self.wallet.get_frozen_balance()
@pyqtProperty(int, notify=balanceChanged)
@pyqtProperty('quint64', notify=balanceChanged)
def unconfirmedBalance(self):
return self.wallet.get_balance()[1]
@pyqtProperty(int, notify=balanceChanged)
@pyqtProperty('quint64', notify=balanceChanged)
def confirmedBalance(self):
c, u, x = self.wallet.get_balance()
self._logger.info('balance: ' + str(c) + ' ' + str(u) + ' ' + str(x) + ' ')

Loading…
Cancel
Save