Browse Source

qml: fixes

patch-4
Sander van Grieken 3 years ago
parent
commit
4f3dc7a2cc
  1. 2
      electrum/gui/qml/components/controls/InfoTextArea.qml
  2. 4
      electrum/gui/qml/qenetwork.py

2
electrum/gui/qml/components/controls/InfoTextArea.qml

@ -38,7 +38,7 @@ GridLayout {
}
Image {
source: iconStyle == InfoTextArea.IconStyle.Info ? "../../../icons/info.png" : InfoTextArea.IconStyle.Warn ? "../../../icons/warning.png" : InfoTextArea.IconStyle.Error ? "../../../icons/expired.png" : ""
source: iconStyle == InfoTextArea.IconStyle.Info ? "../../../icons/info.png" : iconStyle == InfoTextArea.IconStyle.Warn ? "../../../icons/warning.png" : iconStyle == InfoTextArea.IconStyle.Error ? "../../../icons/expired.png" : ""
anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: constants.paddingLarge

4
electrum/gui/qml/qenetwork.py

@ -74,12 +74,12 @@ class QENetwork(QObject, QtEventListener):
self.statusChanged.emit()
chains = len(self.network.get_blockchains())
if chains != self._chaintips:
self._logger.debug('chain tips # changed: ' + chains)
self._logger.debug('chain tips # changed: %d', chains)
self._chaintips = chains
self.chaintipsChanged.emit()
server_lag = self.network.get_local_height() - self.network.get_server_height()
if self._islagging ^ (server_lag > 1):
self._logger.debug('lagging changed: ' + (server_lag > 1))
self._logger.debug('lagging changed: %s', str(server_lag > 1))
self._islagging = server_lag > 1
self.isLaggingChanged.emit()

Loading…
Cancel
Save