Commit Graph

1801 Commits

Author SHA1 Message Date
ThomasV
6a74ffe80e Qt: improve channel details dialog. Add util.ShowQRLineEdit class. 2022-07-19 14:57:33 +02:00
ThomasV
4ff1ed5de5 show_lightning_invoice: minor improvements 2022-07-19 10:32:22 +02:00
ThomasV
85d354bf24 Qt show_lightning_invoice: show features 2022-07-19 10:15:55 +02:00
ThomasV
1568c10ca0 fix 'view log' menu (follow-up 2d68350900) 2022-07-18 14:09:50 +02:00
SomberNight
d5b5f82b01 LN invoice: better handle unknown required featured bits in bolt11 invs
A user provided an invoice that requires feature bit 30. (That bit is not in the spec)
To test:
```
lnbc1p324a66pp5tundykxx3q5kztsr8x00eknpn2uwe3394cnky3j9a0fswm568wnsdp9facx2mj5d9kk2um5v9khqueqv3hkuct5d9hkucqzpgxq9z0rgqsp5l73jgfgctzc92juer5rk2mqcrkj8teng53dr9vfxj4n8lulu4jmq9q8pqqqssq4gacn859tpzz99hkusnh7m93d5ncpx3t4zns8ynca7akmljpl5vh504qjz7dqwewqjh4md7xagaz5wg85knvxywrhp0sp2t09yta7lcq3qs6fy

lntb1p324a66pp5tundykxx3q5kztsr8x00eknpn2uwe3394cnky3j9a0fswm568wnssp5l73jgfgctzc92juer5rk2mqcrkj8teng53dr9vfxj4n8lulu4jmqdp9facx2mj5d9kk2um5v9khqueqv3hkuct5d9hkuxq9z0rgq9q8pqqqssqdte0z9dy7ur7fagsk7r3mtfj6upq88xfylhufys87zqpamklcfgn2f3xeq3nlhvn3qy9tdgg42vq9eq99qz6rz6tzqezfhzuv6zsr5qp7cgel4
```
2022-07-15 18:00:33 +02:00
SomberNight
1e97491124 qt QRDialog: make dialog usefully resizeable
In commit 9bba65199e,
the QRCodeWidget was put inside a BoxLayout as a workaround to avoid the "copy to clipboard" and
"save as file" functionality grabbing extra whitespace/stretch/padding and putting it into the
exported image.

However, in turn that commit introduced a bug, where making the dialog larger does not make the
QRCodeWidget larger (which worked prior).

This commit tries to fix the regression and also the original bug.
2022-07-12 19:26:01 +02:00
Sander van Grieken
894495aa92 qml: clean up 2022-07-12 19:07:19 +02:00
Sander van Grieken
63fed38305 qml: skip wallet password entry when single_password and password is known 2022-07-12 17:34:52 +02:00
Sander van Grieken
70cf44ccec qml: wip single password 2022-07-12 16:55:11 +02:00
SomberNight
430a61eb42 qt QRDialog: try to fix layout-sizing issues
related https://github.com/spesmilo/electrum/pull/7218
closes https://github.com/spesmilo/electrum/pull/7223
2022-07-12 16:50:49 +02:00
SomberNight
d067e0e314 wallet: make "invoices" and "receive_requests" private
Other modules should use getters such as "get_request(key)" or "get_unpaid_requests()",
direct access is error-prone.
2022-07-12 15:46:47 +02:00
SomberNight
056de017f0 wallet: use get_request(addr) instead of receive_requests[addr]
since "invoice unification", requests are often keyed by rhash
2022-07-12 15:38:54 +02:00
SomberNight
44655bcca2 qt qrtextedit: also show icon in ShowQRTextEdit.contextMenu
follow-up 955986d024
2022-07-12 15:33:28 +02:00
Sander van Grieken
d0a9420c87 qml: fix initial focus wallet name in new wallet wizard 2022-07-12 14:01:04 +02:00
Sander van Grieken
f83c944f0e qml: properly set keystore password when creating new wallet 2022-07-12 14:00:53 +02:00
SomberNight
955986d024 qt: PayToEdit and OverlayControlMixin: move around input buttons 2022-07-11 19:08:53 +02:00
ThomasV
9ae0e5bffc remove lightning parameter from wallet.create_request 2022-07-11 13:52:13 +02:00
ThomasV
957174a039 all GUIs: show local and remote force-close options in a homogeneous way 2022-07-11 13:08:04 +02:00
ThomasV
8c991ef656 channels_list: refactor menu. Add request_force_close option for channels too, guard it with a confirmation dialog. 2022-07-11 12:16:17 +02:00
SomberNight
bcbe69672e qml gui: fix flake8 "F821 undefined name" errors 2022-07-09 03:49:45 +02:00
Sander van Grieken
2c92174ee0 qewallet: fix useNotify signal emit 2022-07-08 16:27:18 +02:00
Sander van Grieken
2c656a0cf7 add excepthooks, hoping to force a backtrace log when qt5 SIGABRTs 2022-07-08 16:25:44 +02:00
Sander van Grieken
a5fc067481 take out routing hints retrieval for display for now. 2022-07-08 12:32:27 +02:00
Sander van Grieken
f5933da348 skip wallet files with leading dot 2022-07-08 11:10:15 +02:00
Sander van Grieken
0228169852 refactor to new event listener framework 2022-07-08 11:09:08 +02:00
Sander van Grieken
1f827f71d2 add info text for all remaining invoice states 2022-07-07 18:30:20 +02:00
Sander van Grieken
537dbab522 fix canRbf value in Send.qml 2022-07-07 18:30:20 +02:00
Sander van Grieken
2a13212ded implement auth by PIN and allow auth override to wallet password
by passing method='wallet' to auth_protect
2022-07-07 18:30:20 +02:00
Sander van Grieken
cc778356eb allow paying when lightning invoice is in status FAILED 2022-07-07 18:30:20 +02:00
Sander van Grieken
cd6d5e577b add unified wallet password support 2022-07-07 18:30:20 +02:00
Sander van Grieken
0130e5aecf invert (in)validPassword property in QEWalletDB, add invalidPassword signal.
This is to better support state in OpenWallet page
2022-07-07 18:30:20 +02:00
Sander van Grieken
e289b8b46c move channels_updated event handling to ui thread, fix some debug statements 2022-07-07 18:30:20 +02:00
Sander van Grieken
dc50da6c62 channel freeze menu items only enabled when channel is open 2022-07-07 18:30:20 +02:00
Sander van Grieken
7298dd0ab7 clean up list of outputs in ConfirmTxDialog 2022-07-07 18:30:20 +02:00
Sander van Grieken
6fecf5b962 disable new_channel call for now as channel is otherwise added twice 2022-07-07 18:30:20 +02:00
Sander van Grieken
6a1c39728f add 'spend unconfirmed' config option 2022-07-07 18:30:20 +02:00
Sander van Grieken
f2857243cb show 'press again to quit' message when pressing back on last page in the stack 2022-07-07 18:30:20 +02:00
Sander van Grieken
cbd4d2a2ae make rbf selection allowed configurable 2022-07-07 18:30:20 +02:00
Sander van Grieken
982639919d make sure historymodel is initialized 2022-07-07 18:29:21 +02:00
Sander van Grieken
db9e2ab311 delete channel 2022-07-07 18:29:21 +02:00
Sander van Grieken
456b6048ea properly count open channels, add open channel to hamburger menu 2022-07-07 18:29:21 +02:00
Sander van Grieken
b2fafcb428 add initial submarine swap functionality 2022-07-07 18:29:02 +02:00
Sander van Grieken
a44f8d9b3b create new wallet name suggestion and pre-select and focus the textfield 2022-07-07 18:29:02 +02:00
Sander van Grieken
7a26ab259c update channel listmodel when channel opened 2022-07-07 18:29:02 +02:00
Sander van Grieken
2907698c17 support for MAX amounts 2022-07-07 18:29:02 +02:00
Sander van Grieken
e69fc739ca add initial channel close dialog 2022-07-07 18:29:02 +02:00
Sander van Grieken
71cd996379 InvoiceDialog: add balance & expired checks on invoices, add a few ln invoice fields to show 2022-07-07 18:29:02 +02:00
Sander van Grieken
c79651f981 also unregister callbacks from qewallet and qechannellistmodel on destroy 2022-07-07 18:29:02 +02:00
Sander van Grieken
f0d00dca37 unregister callback when object gets destroyed.
turns out we need to use a lambda to have the signal processed,
registering the member function somehow never triggers the
'destroyed' signal
2022-07-07 18:29:02 +02:00
Sander van Grieken
2c40a976b9 copy & share lightning requests 2022-07-07 18:29:02 +02:00