Commit Graph

1947 Commits

Author SHA1 Message Date
Sander van Grieken
95b2f6fd63 qml: use Lightning, URI and Address for type names in ReceiveDialog 2022-09-29 11:57:34 +02:00
Sander van Grieken
8437e13666 add initial lnurl-pay 2022-09-28 18:21:07 +02:00
Sander van Grieken
2778a1bc20 fix dialog stack handling when closing from outside 2022-09-28 18:21:07 +02:00
Sander van Grieken
d65a7e7efc change address-only handling: create amount=0 onchain invoice
invoicedialog auto enables edit mode when amount is 0
2022-09-28 18:21:07 +02:00
Sander van Grieken
fb68931a8d allow zero amount invoices, add edit amount option for invoices 2022-09-28 18:21:07 +02:00
Sander van Grieken
5f9068d7b0 add default request expiry to preferences/config 2022-09-28 18:21:07 +02:00
Sander van Grieken
dd58328534 ui, fix payment failed 2022-09-28 18:21:07 +02:00
Sander van Grieken
d50d83e186 icons, buttons, receivedialog lifecycle 2022-09-28 18:21:07 +02:00
Sander van Grieken
10a1f11a53 re-add copy and share buttons 2022-09-28 18:21:07 +02:00
Sander van Grieken
b963c48238 remove old Send and Receive pages 2022-09-28 18:21:07 +02:00
Sander van Grieken
58e3e0c235 add manual input option 2022-09-28 18:21:07 +02:00
Sander van Grieken
cabf8e0644 support stacking dialogs 2022-09-28 18:21:07 +02:00
Sander van Grieken
d4df633f22 move request details into separate dialog 2022-09-28 18:21:07 +02:00
Sander van Grieken
15c76114c6 replace swipeview, send & receive now dialogs
send mostly working, though no user entered payment yet
2022-09-28 18:21:07 +02:00
Sander van Grieken
0f02c54c77 qml: fix qerequestdetails.py signal, remove qr scan loop logging 2022-09-27 10:01:20 +02:00
SomberNight
d94c934e47 qt main_window: _coroutines_scheduled needs locking
window.run_coroutine_from_thread starts a coroutine on the asyncio loop,
which, when finishing, pops from the dict.
The for loop in clean_up is running on the Qt thread.

fixes https://github.com/spesmilo/electrum/issues/7983
2022-09-26 20:10:44 +00:00
SomberNight
1478d9d878 Qt CompletionTextEdit: cast KeyboardModifiers to int
closes https://github.com/spesmilo/electrum/issues/7979
2022-09-23 17:08:16 +00:00
SomberNight
c43e0000ce Qt ConfirmTxDialog: disconnect timer when closing dialog
fixes https://github.com/spesmilo/electrum/issues/6791
2022-09-23 16:36:17 +00:00
ThomasV
028916b447 fix #7988 2022-09-23 09:41:46 +02:00
Sander van Grieken
5681311fc2 fix request_status callback not passing the correct request key 2022-09-22 11:54:14 +02:00
Sander van Grieken
11b8d5e2f0 qml: work around qeamount copy from None 2022-09-20 19:14:36 +02:00
SomberNight
e5f21fb7b5 lnurl: better handle unimplemented lnurl subtypes
fixes https://github.com/spesmilo/electrum/issues/7971
2022-09-20 16:00:20 +00:00
ThomasV
2af59e32b2 lnworker: define use_trampoline() for code clarity 2022-09-19 17:43:13 +02:00
Sander van Grieken
a488be61db qml: fix open channel 2022-09-14 16:07:03 +02:00
Sander van Grieken
6bbd18dc78 qml: fix flake errors 2022-09-09 19:58:48 +02:00
Sander van Grieken
27999a9583 qml: clean up, generalize plugin gui base, enumerate plugins in gui
(still quite crude impl, dynamic enable/disable plugin gui is misaligned
with backend)
2022-09-08 15:15:46 +02:00
Sander van Grieken
32a81d8ee7 qml: initial plugin support, with labelsync mostly implemented 2022-09-08 12:19:38 +02:00
ThomasV
14e96f4d53 Index request by ID instead of receiving address.
Replace get_key_for_outgoing_invoice, get_key_for_incoming_request
with Invoice.get_id()

When a new request is created, reuse addresses of expired requests (fixes #7927)

The API is changed for the following commands:
 get_request, get_invoice,
 list_requests, list_invoices,
 delete_request, delete_invoice
2022-09-02 10:58:11 +02:00
Sander van Grieken
6d77253ac2 qml: remove log statement 2022-08-31 13:50:26 +02:00
Sander van Grieken
40e8ff6ce2 qml: add hack to delay rendering of QR until dialog is shown.
unfortunately, using standard QtQuick Image.asynchronous=true leads
to a deadlock at app exit so we can't use it a.t.m.
2022-08-31 13:33:58 +02:00
Sander van Grieken
179666612e qml: fix get_request in qerequestdetails 2022-08-31 13:31:19 +02:00
SomberNight
42f2a3da31 Qt pay_lightning_invoice: handle NoDynamicFeeEstimates
`wallet.make_unsigned_transaction` can raise NotEnoughFunds or NoDynamicFeeEstimates.
These are "expected" exceptions that need to be handled or worked around. Added a note
of this in the docstring now.

We now handle NoDynamicFeeEstimates by allowing a static fallback fee in
`wallet.can_pay_onchain` and `lnworker.suggest_funding_amount`. It should be
fine to have a static fallback in these cases, as the user still has a chance
to set their own fee later in the flow.
(though ofc the static fallback might be too high in some mempool conditions,
in which case e.g. can_pay_onchain might return a false-negative, but this
is still an improvement over raising I believe)

fixes https://github.com/spesmilo/electrum/issues/5784
2022-08-30 11:46:52 +00:00
SomberNight
d37b5e7d75 Qt ReceiveTabWidget: change cursor to hint QR code can be clicked 2022-08-29 13:30:59 +00:00
SomberNight
20997cf60b wallet: follow-up removal of get_request_status
follow-up d9f77a50e8
2022-08-29 12:27:05 +00:00
ThomasV
6a9e8da218 remove sign_payment_request: broken and not used 2022-08-29 12:50:02 +02:00
ThomasV
d9f77a50e8 wallet API: remove get_request_status, it is redundant with get_invoice_status 2022-08-29 09:48:08 +02:00
Sander van Grieken
291ca40c9e qml: fix missing param in userNotify 2022-08-27 13:41:59 +02:00
Sander van Grieken
629b0c56f3 qml: fix missing import 2022-08-26 15:15:40 +02:00
Sander van Grieken
34c901b1a6 qml: add Save Backup dialog when no onchain backup, some initial work on incomplete funding TX 2022-08-26 15:06:10 +02:00
Sander van Grieken
b9f381a133 qml: fix channel double add to list on open, better display errors 2022-08-26 13:21:49 +02:00
Sander van Grieken
e582ae0486 qml: add QEAmount.copyFrom(QEAmount) so we can take a new amount object without changing the instance.
This avoids crashes when a QEAmount is already referenced in QML, and then replaced with another instance (e.g. in qetxfinalizer.py)
2022-08-26 11:57:00 +02:00
Sander van Grieken
f398404e04 qml: add server and proxy config dialogs, forgot new files 2022-08-25 11:13:42 +02:00
ThomasV
dd95369685 qml: fix undefined name (flake8 mandatory test) 2022-08-25 09:51:32 +02:00
Sander van Grieken
7b17626c4c qml: PIN error message also when setting new pin and second entry doesn't match 2022-08-24 16:21:14 +02:00
Sander van Grieken
3295671e5b qml: show when PIN is wrong 2022-08-24 16:16:50 +02:00
SomberNight
8cbf49fec9 Qt balance dialog: use monospace font for btc amounts 2022-08-24 14:05:35 +00:00
Sander van Grieken
9a72f98855 qml: add server and proxy config dialogs 2022-08-24 16:01:50 +02:00
Sander van Grieken
dea30f96a1 qml: small fixes, cleanup 2022-08-24 12:38:25 +02:00
Sander van Grieken
c37e202e44 qml: implement scrollbar drag in history listview 2022-08-24 12:25:51 +02:00
Sander van Grieken
b0cfc2ab14 qml: add channel backup option to channel details page 2022-08-24 10:15:44 +02:00