diff --git a/electrum/gui/qml/components/AddressDetails.qml b/electrum/gui/qml/components/AddressDetails.qml index 6cbe6e848..eb5d815fa 100644 --- a/electrum/gui/qml/components/AddressDetails.qml +++ b/electrum/gui/qml/components/AddressDetails.qml @@ -123,7 +123,7 @@ Pane { icon.color: 'transparent' onClicked: { labelContent.editmode = false - addressdetails.set_label(labelEdit.text) + addressdetails.setLabel(labelEdit.text) } } ToolButton { diff --git a/electrum/gui/qml/components/LightningPaymentDetails.qml b/electrum/gui/qml/components/LightningPaymentDetails.qml index 097643947..5d6d03e78 100644 --- a/electrum/gui/qml/components/LightningPaymentDetails.qml +++ b/electrum/gui/qml/components/LightningPaymentDetails.qml @@ -120,7 +120,7 @@ Pane { icon.color: 'transparent' onClicked: { labelContent.editmode = false - lnpaymentdetails.set_label(labelEdit.text) + lnpaymentdetails.setLabel(labelEdit.text) } } ToolButton { diff --git a/electrum/gui/qml/components/OpenChannelDialog.qml b/electrum/gui/qml/components/OpenChannelDialog.qml index 8c3e13816..63b293119 100644 --- a/electrum/gui/qml/components/OpenChannelDialog.qml +++ b/electrum/gui/qml/components/OpenChannelDialog.qml @@ -95,7 +95,7 @@ ElDialog { icon.height: constants.iconSizeMedium icon.width: constants.iconSizeMedium onClicked: { - if (channelopener.validate_connect_str(AppController.clipboardToText())) { + if (channelopener.validateConnectString(AppController.clipboardToText())) { channelopener.connectStr = AppController.clipboardToText() node.text = channelopener.connectStr } @@ -111,7 +111,7 @@ ElDialog { hint: qsTr('Scan a channel connect string') }) dialog.onFound.connect(function() { - if (channelopener.validate_connect_str(dialog.scanData)) { + if (channelopener.validateConnectString(dialog.scanData)) { channelopener.connectStr = dialog.scanData node.text = channelopener.connectStr } @@ -196,7 +196,7 @@ ElDialog { text: qsTr('Open Channel') icon.source: '../../icons/confirmed.png' enabled: channelopener.valid - onClicked: channelopener.open_channel() + onClicked: channelopener.openChannel() } } @@ -225,7 +225,7 @@ ElDialog { var dialog = app.messageDialog.createObject(app, { 'text': message, 'yesno': true }) dialog.open() dialog.accepted.connect(function() { - channelopener.open_channel(true) + channelopener.openChannel(true) }) } onFinalizerChanged: { diff --git a/electrum/gui/qml/components/TxDetails.qml b/electrum/gui/qml/components/TxDetails.qml index 624f5aaab..1625d1f6f 100644 --- a/electrum/gui/qml/components/TxDetails.qml +++ b/electrum/gui/qml/components/TxDetails.qml @@ -212,7 +212,7 @@ Pane { icon.color: 'transparent' onClicked: { labelContent.editmode = false - txdetails.set_label(labelEdit.text) + txdetails.setLabel(labelEdit.text) } } ToolButton { diff --git a/electrum/gui/qml/qeaddressdetails.py b/electrum/gui/qml/qeaddressdetails.py index 2d910c160..0b23dcbbf 100644 --- a/electrum/gui/qml/qeaddressdetails.py +++ b/electrum/gui/qml/qeaddressdetails.py @@ -94,7 +94,7 @@ class QEAddressDetails(QObject): self._wallet.balanceChanged.emit() @pyqtSlot(str) - def set_label(self, label: str): + def setLabel(self, label: str): if label != self._label: self._wallet.wallet.set_label(self._address, label) self._label = label diff --git a/electrum/gui/qml/qechannelopener.py b/electrum/gui/qml/qechannelopener.py index 16433258d..08d855764 100644 --- a/electrum/gui/qml/qechannelopener.py +++ b/electrum/gui/qml/qechannelopener.py @@ -132,7 +132,7 @@ class QEChannelOpener(QObject, AuthMixin): self.validChanged.emit() @pyqtSlot(str, result=bool) - def validate_connect_str(self, connect_str): + def validateConnectString(self, connect_str): try: node_id, rest = extract_nodeid(connect_str) except ConnStringFormatError as e: @@ -143,7 +143,7 @@ class QEChannelOpener(QObject, AuthMixin): # FIXME "max" button in amount_dialog should enforce LN_MAX_FUNDING_SAT @pyqtSlot() @pyqtSlot(bool) - def open_channel(self, confirm_backup_conflict=False): + def openChannel(self, confirm_backup_conflict=False): if not self.valid: return diff --git a/electrum/gui/qml/qelnpaymentdetails.py b/electrum/gui/qml/qelnpaymentdetails.py index 24250252c..d01988c54 100644 --- a/electrum/gui/qml/qelnpaymentdetails.py +++ b/electrum/gui/qml/qelnpaymentdetails.py @@ -50,7 +50,7 @@ class QELnPaymentDetails(QObject): return self._label @pyqtSlot(str) - def set_label(self, label: str): + def setLabel(self, label: str): if label != self._label: self._wallet.wallet.set_label(self._key, label) self._label = label diff --git a/electrum/gui/qml/qetxdetails.py b/electrum/gui/qml/qetxdetails.py index e1af555aa..8ff2cc6b2 100644 --- a/electrum/gui/qml/qetxdetails.py +++ b/electrum/gui/qml/qetxdetails.py @@ -126,7 +126,7 @@ class QETxDetails(QObject, QtEventListener): return self._label @pyqtSlot(str) - def set_label(self, label: str): + def setLabel(self, label: str): if label != self._label: self._wallet.wallet.set_label(self._txid, label) self._label = label