diff --git a/electrum/gui/qml/components/controls/InfoTextArea.qml b/electrum/gui/qml/components/controls/InfoTextArea.qml index ba2848aac..78bd11c3a 100644 --- a/electrum/gui/qml/components/controls/InfoTextArea.qml +++ b/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 diff --git a/electrum/gui/qml/qenetwork.py b/electrum/gui/qml/qenetwork.py index ced23673c..8854a6a25 100644 --- a/electrum/gui/qml/qenetwork.py +++ b/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()