Sander van Grieken
674c2b55e7
qml: small fixes
3 years ago
Sander van Grieken
2fc9ee5c51
p4a: fix for Qt5 accessibility bug
...
see 087fc3c583
3 years ago
SomberNight
b429992e77
wizard.py: don't use mutable default args
3 years ago
SomberNight
e9aad6896e
wizard.py: change stack to be per-instance
...
seems less error-prone
3 years ago
SomberNight
fd9a90f3b6
wizard.py: fix clearing stack between wizards
...
try finishing a wizard and then launching a new one: the new one kept
building on top of the stack of the prev wizard
3 years ago
SomberNight
417423ecd7
qt: PayToEdit: fix input_qr_from_camera
...
closes https://github.com/spesmilo/electrum/issues/8342
probably regression from 1f4cedf56a
3 years ago
SomberNight
a8623f63bb
qml: fix send "flow with LN but not LN enabled AND having bip21 uri"
...
closes https://github.com/spesmilo/electrum/issues/8334
3 years ago
SomberNight
7907eb1f86
qml/qeinvoice.py: turn _bip21 field into local var
3 years ago
SomberNight
6b75d5f134
qt SwapDialog: handle sm.max_amount_forward_swap() being None
...
closes https://github.com/spesmilo/electrum/issues/8341
3 years ago
SomberNight
ea864cd5c9
qml: TxListModel: don't rely on wallet.db.get_transaction() finding tx
...
tx might get removed from wallet after wallet.get_full_history() but before the model is populated
closes https://github.com/spesmilo/electrum/issues/8339
3 years ago
SomberNight
1a2d4494eb
qt: fix sweeping
...
closes https://github.com/spesmilo/electrum/issues/8340
regression from 2f6d60c715
3 years ago
SomberNight
ad58916729
wizard.py: (trivial) fix type hint and an f-string
3 years ago
SomberNight
6b0db411ae
wallet: save_db immediately after init_lightning() generates keys
...
Had a crash shortly after enabling lightning and the LN keys were lost...
Though note that opening a channel triggers wallet.save_db(), so I think
nothing of real value is at risk without this change.
3 years ago
ThomasV
0fcf423fbe
Revert "lnworker: schedule_force_closing is not async"
...
This reverts commit fcf836bc94 .
3 years ago
ThomasV
fcf836bc94
lnworker: schedule_force_closing is not async
3 years ago
ThomasV
f787d6eede
qt piechart: show a full circle if there is only one item in the list
3 years ago
Sander van Grieken
0d536b83ba
qml: ignore update() when wallet not set yet. closes #8330
3 years ago
Sander van Grieken
7383cdc474
qml: don't crash when tx not found on histogram event. closes #8332
3 years ago
SomberNight
75a9a4fce9
qml TxDetails: txid must be updated after rawtx is changed
...
refresh bug when using bump_fee/dscancel/etc
3 years ago
SomberNight
2ec4758a12
qml: follow-up fix for offline-signing pre-segwit tx
...
follow-up 3cec6cdcfb
3 years ago
SomberNight
2be71c2dcc
windows README: update reference to libsecp256k1-0.dll to incl newer
...
related: https://github.com/spesmilo/electrum/pull/8185
3 years ago
SomberNight
ca3f48d22e
qml: remove buggy "Replace-by-Fee" checkbox from RbfCancelDialog
...
follow-up 02dce339cc
3 years ago
Sander van Grieken
e9d5e5737e
qml: update UI after import key/address, add icon to address/key import dialog
3 years ago
Sander van Grieken
c3a418d4da
qml: address list heading translatable
3 years ago
SomberNight
cede16a522
libsecp256k1: update hardcoded .so lib name in binaries
...
follow-up 2a2b683d23
TODO: maybe we should drop the version number in the lib name we bundle...
3 years ago
Sander van Grieken
2f8ab8027b
qml: split off AddressDelegate and handle imported addresses more gracefully
3 years ago
SomberNight
ae8501e5be
qml: small fix in qetxfinalizer.py
...
follow-up 3cec6cdcfb
3 years ago
Sander van Grieken
bd897b0955
qml: translate <no label>
3 years ago
SomberNight
2a2b683d23
bump libsecp256k1 version
3 years ago
SomberNight
784fc27cb9
libsecp256k1: add runtime support for 0.3.x
...
this replaces https://github.com/spesmilo/electrum/pull/8320
see f6bef03c0a/CHANGELOG.md
I am not yet sure how this will look like going forward, but unless there will
be lots of libsecp256k1 releases with ~invisible harmless ABI changes, I think
conceptually this is the right approach.
3 years ago
Sander van Grieken
3cec6cdcfb
qml: second part of partially signing tx while not having txid yet
3 years ago
Sander van Grieken
03d9000e79
qml: fix a few texts that should wrap
3 years ago
Sander van Grieken
b9ec04f13a
qml: make txdetails less reliant on txid
3 years ago
SomberNight
75e65c5cc7
qml: virtual keyboard: make margins smaller, for larger buttons
...
Looking at different system-wide keyboards on different phones, these
new smaller margin sizes should still be sufficient; and this lets
the buttons be larger.
3 years ago
Sander van Grieken
1aa14e749a
qml: first part of partially signing tx while not having txid yet
3 years ago
SomberNight
1b5c7d46d7
lnurl: forbid paying to "http://" lnurls (enforce https or .onion)
...
In theory merchants should only use safeish non-mitm-able schemes, but
let's add this sanity check for peace of mind.
3 years ago
SomberNight
8f576e50a4
lnurl: add some error-handling/response-validation
3 years ago
SomberNight
be159b5b95
bugfix: assert walrus (":=") combo side-eff. breaks w/ asserts disabled
...
```
$ python3 -O
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> assert (x := 2)
>>> x
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
```
pity. it looked to be a neat and concise pattern.
3 years ago
SomberNight
22205dccb1
qt ChannelsList: disable toolbar menu if `not wallet.has_lightning()`
...
closes https://github.com/spesmilo/electrum/issues/8321
3 years ago
SomberNight
fa04ff005b
contrib: fix build_locale.sh to work with relative paths
...
I think all scripts that call this file already used abs paths,
but manual callers tend to use relative paths.
3 years ago
SomberNight
b0b4f39b40
i18n: add "context" param to _(), and use it from qml
...
fixes https://github.com/spesmilo/electrum/issues/8323
from issue:
> Currently, translatable strings from QML are assigned a `context`
> by `lupdate`, which is then also used by the conversion to `gettext`.
> This `context` must be used when translating such a string. This results in
> strings that are unique to QML to not be translated, due to a missing
> `context` parameter which we do not take into account in electrum.
3 years ago
Sander van Grieken
1a4e48e2d4
qml: fix MessageDialog layout
3 years ago
Sander van Grieken
54ab3673ba
qml: TxDetails don't show or allow edit of label for unrelated tx
3 years ago
Sander van Grieken
3b7fa89e44
wizard: p2sh multisig is 'standard' in backend wallet
3 years ago
Sander van Grieken
323aa84279
qml: only allow wallet menu if on wallet specific page
3 years ago
Sander van Grieken
1649f9993e
qml: limit wallet name label widths so they get wrapped/elided. fixes #8317
3 years ago
Emanuel Haupt
fd6e34bf5f
fix: Fix libsecp256k1 loader on FreeBSD
...
FreeBSD installs libsecp256k1 as:
```
/usr/local/lib/libsecp256k1.so.2.0.1
/usr/local/lib/libsecp256k1.so -> libsecp256k1.so.2.0.1
/usr/local/lib/libsecp256k1.so.2 -> libsecp256k1.so.2.0.1
```
3 years ago
SomberNight
a2063f8f48
qt tx dialog: rm dead code
3 years ago
SomberNight
42ec0e4e9d
slip39: fix incorrect type hint
3 years ago
SomberNight
cbb4c3ceb2
slip39: rewrite some strings for better localisation
...
related: https://github.com/spesmilo/electrum/issues/8314
3 years ago