Commit Graph

2533 Commits

Author SHA1 Message Date
SomberNight
558eb1a372 qml: reorganise toolbarTopLayout, so that top-left click opens menu
previously clicking too far left would not open the wallet-menu:
- click on label would open it, but
- click on wallet-icon or padding to its left would not
2023-03-21 17:51:29 +00:00
ThomasV
3fb3e3b809 lnurl6: pay invoice directly 2023-03-21 17:08:36 +01:00
SomberNight
ed0f1ea27f qt receive_tab: use correct qrcode icon (based on dark/light theme) 2023-03-21 15:31:07 +00:00
ThomasV
1503ef1e2a follow-up previous commit 2023-03-21 10:42:21 +01:00
ThomasV
a080e5130f Qt receive_tab: toggle_view_button instead of tabs 2023-03-21 10:34:26 +01:00
Sander van Grieken
3cf732cb51 qml: introduction text bottom margins in RbF bump fee and cancel dialogs 2023-03-21 09:44:53 +01:00
Sander van Grieken
077ea9a4a5 qml: AddressDetails heading 2023-03-21 09:44:40 +01:00
ThomasV
ce6e4d99e7 Qt history_list: disable summary if fx history is not available 2023-03-21 08:04:03 +01:00
Sander van Grieken
a5c58f8aae qml: layout fixes for small form-factor devices 2023-03-20 19:52:57 +01:00
Sander van Grieken
677e1259df qml: ElDialog now defaults to parent on Overlay.overlay
This was replicated in basically all ElDialog derived dialogs
2023-03-20 16:53:40 +01:00
Sander van Grieken
4ed69cc54f qml: BtcField/FiatField ImhDigitsOnly input method hint 2023-03-20 14:10:13 +01:00
ThomasV
4fa192d9e7 follow-up c3e52bfafc 2023-03-20 11:09:18 +01:00
ThomasV
5cf4b346a9 change message: detached QR code window 2023-03-19 11:40:52 +01:00
ThomasV
8b0a6940bc receive tab: disable widgets if request has expired, instead of applying red stylesheet 2023-03-19 11:13:45 +01:00
ThomasV
4243b250b1 qt send_tab: simplify method names.
when a method belongs to a class, there is no need to repeat the
class name in the method name.
2023-03-19 10:44:33 +01:00
ThomasV
b07fe970bf receive tab: do not use ButtonsTextEdit, add toggle to toolbar. 2023-03-19 10:15:19 +01:00
ThomasV
c3e52bfafc Qt: allow to save invoices that have no amount
(such invoices are already saved by the QML GUI.)
2023-03-19 09:52:47 +01:00
ThomasV
5ab3a250c5 qml: remove '1 month' expiry option.
The list of supported values is in electrum/invoices.py
If the config is set to an unsuported value, the qt app will crash.
2023-03-19 09:02:35 +01:00
ThomasV
aa3697de74 Qr request_list: maybe fix elusive segfault 2023-03-19 06:36:36 +01:00
ThomasV
5c60b9ad29 ln invoice dialog: show fallback address 2023-03-19 05:16:15 +01:00
ThomasV
3b78466123 simplify code (follow-up 2836dccfbb) 2023-03-18 17:45:42 +01:00
ThomasV
d7c5c40c1d Save user-entered amount in invoice. fixes #8252.
Note that this allows users to save invoices that have an empty
amount, which is not allowed by the Qt GUI. Qt will complain at
pay time about empty amount if a lightning invoice without amount
is saved. With onchain invoices, Qt will create an onchain tx with
a zero output.
2023-03-18 17:29:56 +01:00
ThomasV
dd2dced296 follow-up 2836dccfbb 2023-03-18 13:14:14 +01:00
ThomasV
2836dccfbb qml: Handle situation where no more addresses are available without
creating addresses beyond the gap limit.

- if lightning is enabled, propose to create a lightning-only invoice
- otherwise, propose to reuse an address
- never generate addresses beyond the gap limit

Implementation:
 - createDefaultRequest is removed
 - create_bitcoin_address is called whether the wallet has lightning
   or not
2023-03-18 12:58:42 +01:00
Sander van Grieken
cb4c99dc19 qml: styling CloseChannelDialog error text 2023-03-18 11:26:34 +01:00
ThomasV
8cc610298b QML: auto-delete expired requests. Add action to Qt menu 2023-03-18 09:59:18 +01:00
ThomasV
f6699e01c3 qml: minor text change 2023-03-18 04:29:28 +01:00
Sander van Grieken
30034847a2 qml: remove Never as request expiry option 2023-03-18 00:57:39 +01:00
Sander van Grieken
39ac484ec7 qml: password change requires password, not PIN. fixes #8257 2023-03-18 00:52:42 +01:00
ThomasV
fed5fe5991 Qml: new receive flow. fixes #8258 2023-03-17 23:02:43 +01:00
SomberNight
a90bff4586 qml: mark masterkey/wif/addr input fields as sensitive
related: https://github.com/spesmilo/electrum/issues/8256
2023-03-17 17:09:01 +00:00
Sander van Grieken
231ea5d03b qml: status icon InvoiceDialog 2023-03-17 17:33:00 +01:00
SomberNight
55da7276d3 qt export history/privkeys: put wallet name in path
closes https://github.com/spesmilo/electrum/issues/8255
2023-03-17 15:49:58 +00:00
SomberNight
8db1c3814b qt export history: let util.filename_field decide default path
which uses:
directory = config.get('io_dir', os.path.expanduser('~'))
2023-03-17 15:47:42 +00:00
Sander van Grieken
7d2ba3cc39 qml: fix 43d6fd2aef 2023-03-17 16:46:58 +01:00
Sander van Grieken
24a3d6e10f qml: remove editmode toggle, now enabled only on amount-less invoices 2023-03-17 16:46:58 +01:00
ThomasV
c3a0f9c078 Qt swaps_dialog: do not use side effects to update tx.
Use the app timer instead, so that the tx is not recomputed
on every slider move (like in ConfirmTxDialog).

A similar modification is needed for QML. I started with
Qt in order to get a sense of how it should be done.
2023-03-17 15:07:06 +01:00
Sander van Grieken
8eca3e0aaf follow up 7c2f13a76e 2023-03-17 12:33:53 +01:00
ThomasV
7c2f13a76e follow-up fcbd25c1fd. fixes #8253 2023-03-17 12:30:58 +01:00
Sander van Grieken
0b3279820a rm log 2023-03-17 12:01:55 +01:00
Sander van Grieken
a571451179 qml: allow pay while amount in edit mode 2023-03-17 11:51:48 +01:00
ThomasV
fcbd25c1fd qml: display network status and history server status separately. Also, show network fees on full screen width 2023-03-17 10:15:07 +01:00
ThomasV
49683d6ff1 qml: do not set oneserver based on auto_connect. 2023-03-17 09:22:35 +01:00
Sander van Grieken
3e5c692660 qml: don't log (potentially) sensitive data, closes #8124 2023-03-17 00:13:16 +01:00
ThomasV
3574c99275 qml: in the password dialogs, disable the password confirmation
line if the first entered password is too short.

Without that, a user may enter two passwords that are identical
but too short, and then click on the eye icon in order to discover
that they actuall are identical.. and only at this point guess that
the size might be the problem.

Also, raise the minimum length to 6, because that is what is was
on Kivy.

One of the password dialogs still had two eye icons; that was only
fixed in the wizard. I guess that could be avoided if both dialogs
used the same code.
2023-03-16 20:51:17 +01:00
SomberNight
ff2da7ceb9 crash reporter: hardcode gui text. do not trust the server with it
paranoia.
2023-03-16 19:48:35 +00:00
ThomasV
849d987d0d qml: fix #8247 2023-03-16 20:23:29 +01:00
ThomasV
6890268b1d qml: fix display of server fee in swap dialog
The previously displayed amount was not the percentage,
but the mining fee plus the percentage.
2023-03-16 19:29:56 +01:00
ThomasV
13a9d1e2fb Add info on how to scan channel backups 2023-03-16 17:24:07 +01:00
ThomasV
2ef60b906f Reword proxy question.
The second alternative in previous phrase can be misinterpreted as:
'Do you want to connect to the internet through an ISP?'
2023-03-16 17:12:21 +01:00