mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fx plugin fix
This commit is contained in:
parent
c0ef60aa50
commit
28b0ff85f2
1 changed files with 4 additions and 1 deletions
|
@ -113,7 +113,7 @@ class Plugin(FxPlugin, QObject):
|
||||||
@hook
|
@hook
|
||||||
def on_new_window(self, window):
|
def on_new_window(self, window):
|
||||||
# Additional send and receive edit boxes
|
# Additional send and receive edit boxes
|
||||||
if not hasattr(window, 'send_e'):
|
if not hasattr(window, 'fiat_send_e'):
|
||||||
send_e = AmountEdit(self.get_currency)
|
send_e = AmountEdit(self.get_currency)
|
||||||
window.send_grid.addWidget(send_e, 4, 2, Qt.AlignLeft)
|
window.send_grid.addWidget(send_e, 4, 2, Qt.AlignLeft)
|
||||||
window.amount_e.frozen.connect(
|
window.amount_e.frozen.connect(
|
||||||
|
@ -124,6 +124,9 @@ class Plugin(FxPlugin, QObject):
|
||||||
window.fiat_receive_e = receive_e
|
window.fiat_receive_e = receive_e
|
||||||
self.connect_fields(window, window.amount_e, send_e, window.fee_e)
|
self.connect_fields(window, window.amount_e, send_e, window.fee_e)
|
||||||
self.connect_fields(window, window.receive_amount_e, receive_e, None)
|
self.connect_fields(window, window.receive_amount_e, receive_e, None)
|
||||||
|
else:
|
||||||
|
window.fiat_send_e.show()
|
||||||
|
window.fiat_receive_e.show()
|
||||||
window.history_list.refresh_headers()
|
window.history_list.refresh_headers()
|
||||||
window.update_status()
|
window.update_status()
|
||||||
window.connect(self, SIGNAL('new_fx_quotes'), lambda: self.on_fx_quotes(window))
|
window.connect(self, SIGNAL('new_fx_quotes'), lambda: self.on_fx_quotes(window))
|
||||||
|
|
Loading…
Add table
Reference in a new issue