Merge pull request #1114 from romanz/plugin-buttons-fix
plugins: fix buttons insertion
This commit is contained in:
@@ -85,7 +85,7 @@ class Plugin(BasePlugin):
|
|||||||
self.sender = self._send(parent=dialog, blob=blob)
|
self.sender = self._send(parent=dialog, blob=blob)
|
||||||
self.sender.start()
|
self.sender.start()
|
||||||
b.clicked.connect(handler)
|
b.clicked.connect(handler)
|
||||||
dialog.buttons.insertWidget(1, b)
|
dialog.buttons.insert(0, b)
|
||||||
|
|
||||||
@hook
|
@hook
|
||||||
def scan_text_edit(self, parent):
|
def scan_text_edit(self, parent):
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class Plugin(BasePlugin):
|
|||||||
self.wallet = d.wallet
|
self.wallet = d.wallet
|
||||||
self.verify_button = b = QPushButton(self.button_label)
|
self.verify_button = b = QPushButton(self.button_label)
|
||||||
b.clicked.connect(lambda: self.do_verify(d.tx))
|
b.clicked.connect(lambda: self.do_verify(d.tx))
|
||||||
d.buttons.insertWidget(2, b)
|
d.buttons.insert(1, b)
|
||||||
self.transaction_dialog_update(d)
|
self.transaction_dialog_update(d)
|
||||||
|
|
||||||
def get_my_addr(self, tx):
|
def get_my_addr(self, tx):
|
||||||
|
|||||||
Reference in New Issue
Block a user