1
0
Commit Graph

16095 Commits

Author SHA1 Message Date
ThomasV
157954d4ff qml: do not block access to BalanceSummary if we are not connected. Display warning instead 2023-04-03 17:10:52 +02:00
Sander van Grieken
8bb2464acd qml: add haptic feedback for android. Also preload most used classes to reduce
lag on first use.
2023-04-03 16:07:15 +02:00
Sander van Grieken
e362ac52fa qml: styling 2023-04-03 14:01:59 +02:00
Sander van Grieken
01c31edae2 qml: force same auto-capitalizing behavior on PasswordField regardless of echoMode 2023-04-03 13:31:20 +02:00
Sander van Grieken
ba2faa8c9f qml: avoid adding duplicate request/invoice to listmodel 2023-04-03 12:11:32 +02:00
Sander van Grieken
86711a6a99 qml: icon 2023-04-03 12:07:47 +02:00
Sander van Grieken
0ce3559d62 qml: trustedcoin icon in 2fas wizard disclaimer 2023-04-03 10:59:50 +02:00
Sander van Grieken
ffac79c324 qml: follupup prev 2023-04-03 10:27:33 +02:00
Sander van Grieken
4c87773174 qml: move user_knowns_press_and_hold to config 2023-04-03 10:26:03 +02:00
ThomasV
198ca10cd0 qml: add InfoTextArea about PressAndHold 2023-04-02 11:15:28 +02:00
ThomasV
03fbf6c3d8 qml: show lightning can send/receive amounts in balance details,
rather than in requestDetaildDialog.

Also remove junk code copy-pasted from WalletDetails.
2023-04-02 10:40:57 +02:00
ThomasV
545ee24f46 Qt: move new_channel_dialog to main_window and test available amount beforehand 2023-04-02 10:07:34 +02:00
ThomasV
da802d20ad qml: make zero balance visible in balance details. Disable open channel button if there is no confirmed balance 2023-04-02 09:33:32 +02:00
ThomasV
84cb210e7e qml TxDetails: do not show rbf buttons if the tx is local 2023-04-01 17:11:15 +02:00
ThomasV
9eb59fc360 follow-up 56e685f: amount_sat may be None or max 2023-04-01 16:10:49 +02:00
ThomasV
d0947bc0a6 follow-up 48689ecc89 2023-04-01 15:47:32 +02:00
ThomasV
48689ecc89 qml tx details and rbf dialogs: use a single InfoTextArea, to the
top of each dialog.

Do not display 'cannot bump fee' as the first thing we see when we
enter the bump fee dialog; suggest to move the slider instead.
2023-04-01 15:10:44 +02:00
ThomasV
ba82813c06 qml InvoiceDialog: remove delete button, it only makes sense if you visit the list 2023-04-01 14:05:58 +02:00
ThomasV
02f093c2d2 qml SwapDialog: move userinfo to the top, make it constant, add padding and labels below the slider 2023-04-01 13:46:46 +02:00
ThomasV
a753f34c09 Qt: rename utxo menu action to 'privacy analysis' 2023-04-01 12:47:30 +02:00
ThomasV
6d876da1c4 qml InvoiceDialog: update userinfo messages 2023-04-01 12:46:16 +02:00
ThomasV
d6cbaaa2e9 qml InvoiceDialog: show invoice type in the title, fallback address in the details 2023-04-01 12:26:46 +02:00
ThomasV
ad18298878 qml: Give user feedback after bumping the fee.
This is better than nothing, but not ideal. This window should
have a general purpose 'userinfo' field, like InvoiceDialog,
that would also display 'Broadcasting...' while the tx is being
broadcast.

Note that in order to bump the fee again, the user will have to
leave this window and open it again.
2023-04-01 12:10:35 +02:00
ThomasV
f396d15146 qml: (clarity) use separate slots for sign and sign_and_broadcast. 2023-04-01 12:03:50 +02:00
ThomasV
54bb42f82c adb: take locks in get_balance. fixes #8200 2023-04-01 10:37:38 +02:00
ThomasV
fb47346ed3 follow-up 2cbb16ae4b. fixes #8290 2023-04-01 09:43:52 +02:00
SomberNight
fc6cbb39ea qml: QEConfig.formatMilliSats to use config.format_amount 2023-03-31 22:17:53 +00:00
ThomasV
986955a6e8 qml: allow user to delete invoices and requests from the list screen
also, delete expired requests before loading list
2023-03-31 20:00:29 +02:00
ThomasV
d4aeeaf541 follow-up c98b9e8d7b
(unintended deletion)
2023-03-31 18:36:45 +02:00
SomberNight
0e5464ca13 android build: enable asserts, and add sanity-check for it
Note that 0f541be6f1 added a warning log if asserts are disabled.
It is intentional that these two things are in separate files:
We always want to log that warning, even if someone is using electrum as a library.
However, in that latter case, I think it's fine not to sys.exit(), but leave the decision up to the library user.

Similar thinking when running from source: let's log the warning but don't sys.exit().
2023-03-31 16:24:14 +00:00
ThomasV
847c8d4941 balance details: use onClicked event. Early return if balance is not available 2023-03-31 16:47:15 +02:00
ThomasV
c98b9e8d7b qml: dashboard
Balance details are shown if the user presses and holds the
balance area; the idea is that this should be less chaotic
than if the popup is triggerred by a simple click. However,
we might as well try with a simple click, because we already
do it with transaction details; I am not sure what is the best
option, we should try both.

This also makes 'new channel' and 'swap' buttons available from
theBalance details, so that users do not need to visit the
channels list.
2023-03-31 16:47:15 +02:00
Sander van Grieken
478937b8d2 make flake8 not not happy 2023-03-31 15:46:51 +02:00
Sander van Grieken
2bdc303662 qml: keep lnurlData even after bolt11 has been retrieved, add isLnurlPay property and save bolt11 before triggering pay 2023-03-31 15:39:29 +02:00
Sander van Grieken
ec2f903573 qml: force Pin dialog above other dialogs 2023-03-31 15:38:53 +02:00
Sander van Grieken
244ead2624 qml: auto-pay if entering InvoiceDialog from a lnurl-pay dialog 2023-03-31 15:05:05 +02:00
Sander van Grieken
cf2ba2a5bd qml: replace assert by exception 2023-03-31 15:05:05 +02:00
SomberNight
0f541be6f1 log a warning if asserts are disabled
Maybe we should refuse to start, if launched with the main script.
But note that __debug__ is False on Android atm, as python is launched with -OO.
2023-03-31 13:03:26 +00:00
ThomasV
56e685feaa invoices: Use the same base method to export invoices and requests.
This fixes an inconsistency where the 'expiration' field was
relative for invoices, and absolute timestamp for requests.

This in turn fixes QML the timer refreshing the request list.

In order to prevent any API using that field from being silently
broken, the 'expiration' field is renamed as 'expiry'.
2023-03-31 14:55:08 +02:00
ThomasV
2cda5a1a7b Merge pull request #8287 from SomberNight/202303_qt_netdlg_icon_selected
qt network dialog: use icon for selected server, instead of "*"
2023-03-31 14:43:17 +02:00
Sander van Grieken
168efa6cb4 qml: handle scenario for non-lightning wallet scanning lightning invoice with fallback address 2023-03-31 14:42:03 +02:00
Sander van Grieken
b1b71002e6 qml: followup b8aa87ded8 2023-03-31 14:06:12 +02:00
SomberNight
771ffa371c qml: mempool histogram color bar: show tooltips
to teach meanings of colours and positions in the bar
2023-03-31 11:55:33 +00:00
SomberNight
f7e7b4c9db qml: mempool histogram color bar: flip sign in feerate label
I think this is more intuitive as a "greater than" relation sign
than to use a signal that the label is for the leftmost point in the coloured bar.
As in, "feerates not displayed towards that direction are even higher than this value".
2023-03-31 11:55:30 +00:00
Sander van Grieken
b8aa87ded8 qml: handle phase-2 lnurl errors from within WalletMainView, add sanity check on
the bolt11 invoice we get from the service
2023-03-31 13:21:11 +02:00
Sander van Grieken
e476e60247 qml: add note regarding validity of qetxdetails instance and reset tx/txid members 2023-03-31 12:47:43 +02:00
Sander van Grieken
d99a220c66 qml: add new 'removed_transaction' callback in wallet.py, hook up callback in qewallet and
emit balanceChanged events for add_transaction and remove_transaction
2023-03-31 12:32:02 +02:00
Sander van Grieken
a1da0c0150 qml: virtual keyboard ~20% bigger 2023-03-31 11:01:47 +02:00
Sander van Grieken
df44a5c361 qml: port over 'show_qr to warn if QR code is missing data' 2023-03-31 10:50:11 +02:00
ThomasV
ea46d3c318 qml create request: if no address is available, show how to access
the list of pending requests.
2023-03-31 10:22:16 +02:00