ThomasV
b42bb84b5c
fix typo
3 years ago
SomberNight
6ac3f84095
wallet/lnworker/etc: add sanity checks to start_network methods
...
related: https://github.com/spesmilo/electrum/issues/8301
3 years ago
ThomasV
a03f4769ca
auth_protect: pass authMessage in the auth_protect decorator,
...
instead of relying on side-effects
This is probably safer, and also more self-contained.
3 years ago
ThomasV
73dd6827e0
add auth_message to delete_wallet
...
This changes the flow slightly: pin confirmation is asked after
we have checked that the wallet does not have open channels,
which is better
3 years ago
ThomasV
1421df57ad
add auth message for open_channel
3 years ago
ThomasV
e430063351
PIN dialog: display auth message as title, if available
3 years ago
ThomasV
85291b2de3
follow-up 5b6a16e097
3 years ago
Sander van Grieken
5b6a16e097
qml: add auth_message to AuthMixin, which is displayed above the Pin entry textfield, or
...
shown in a messageDialog for confirmation.
3 years ago
Sander van Grieken
62af3265cb
qml: disable menu option associated with current page
3 years ago
Sander van Grieken
99a78d4d6c
wallet: don't restart wallet/network when init_lightning
3 years ago
Sander van Grieken
76786ab670
qml: qechanneldetails fix remaining assignment
3 years ago
Sander van Grieken
73f89d516a
qml: don't determine channel state on gui string, use state enum instead
3 years ago
Sander van Grieken
a1314f5992
qml: only show channel ratio bar when appropriate
3 years ago
Sander van Grieken
3be5db15d2
qml: don't show channel backup data in share screen
3 years ago
Sander van Grieken
d80de3424b
qml: piechart improve font rendering, use app font
3 years ago
Sander van Grieken
01b9cee643
qml: add recoverable channels warning to OpenChannelDialog
3 years ago
Sander van Grieken
93ef013111
qml: fix recoverable channels setting
3 years ago
Sander van Grieken
25c59f700c
qml: ConfirmTxDialog amount fixed font
3 years ago
Sander van Grieken
1bca301661
qml: piechart visible also when only unconfirmed, add unconfirmed to legend
3 years ago
Sander van Grieken
47033369bd
qml: auth.py use f'' string format notation
3 years ago
SomberNight
f528758c29
util: merge time_difference() into age(), make age() localisable
...
fixes https://github.com/spesmilo/electrum/issues/8304
follow-up 4d4d2e2206
3 years ago
SomberNight
12a81c1a34
tests: add tests for util.age
3 years ago
SomberNight
6b1e6f0775
follow-up prev again...
3 years ago
SomberNight
fb480fe5ed
follow-up prev: fix typo in comment
3 years ago
SomberNight
c9cc56b687
transaction: don't include WIT_UTXO for non-segwit txins
...
probably regression from d3227d7489
fixes https://github.com/spesmilo/electrum/issues/8305
3 years ago
ThomasV
460c198b02
qml: remove send_onchain (dead code)
3 years ago
Sander van Grieken
89003bba4a
qml: remove swapStarted, swapSuccess and swapFailed signals
...
the state property and associated stateChanged signal can be used instead
3 years ago
ThomasV
98c4c86a00
qeswaphelper: enrich user info
3 years ago
ThomasV
08c478f8d2
network: use IntEnum for connection states. Export user-visible strings in get_connection_status_for_GUI
3 years ago
Sander van Grieken
e059a3c04b
qml: apply long-press implementation also on ReceiveRequests
3 years ago
Sander van Grieken
3cab3b86b4
qml: remove SwapProgressDialog, introduce qeswaphelper.state and enable dialog elements
...
depending on qeswaphelper.state
TODO: we can now retrieve the pairs from the service asynchronously, which should eliminate
the startup delay when showing the SwapDialog
3 years ago
Sander van Grieken
f77ff2723c
qml: update userinfo
3 years ago
Sander van Grieken
79d5711003
qml: InfoTextArea add Spinner to styles
3 years ago
ThomasV
f562ad38cf
qml: add confirm dialog before disabling recoverable channels (similar to trampoline)
3 years ago
Sander van Grieken
3d75cf4223
qml: skip confirm messagedialog if pin is enabled
3 years ago
Sander van Grieken
21d1a6239f
qml: always pass wallet password to init_lightning.
...
emit also dataChanged so UI updates node pubkey
3 years ago
Sander van Grieken
5d4e6b1cd7
qml: fix setting empty password when switching to already open wallet with password
3 years ago
ThomasV
22745365ad
qeswaphelper: factorize code
3 years ago
SomberNight
2c1abf24fa
(trivial) use util.get_asyncio_loop() in some places
3 years ago
SomberNight
488dc4871e
wallet: is_up_to_date() to return False if taskgroup stopped
...
If the taskgroup died unexpectedly, this will result in the GUI
showing we are in the "synchronizing" state instead of the green orb.
Being stuck in "synchronizing" provides at least *some* feedback to
the user that something is wrong.
see https://github.com/spesmilo/electrum/issues/8301
3 years ago
ThomasV
8774e59347
exchange rate: if default unit is sat, display value of 1000 sats
3 years ago
ThomasV
8e9491e330
messageDialog: move yes to the right, no to the left.
...
According to the Google Android guidelines, "The dismissive action
of a dialog is always on the left."
source:
https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150
3 years ago
Sander van Grieken
f43cd7b278
followup prev
3 years ago
Sander van Grieken
7a8e980712
qml: since qeswaphelper is tied to SwapDialog anyway, let's make it a direct child
3 years ago
Sander van Grieken
d5ce9c0994
qml: destroy qeswaphelper with SwapDialog and catch RuntimeErrors if qeswalhelper members are accessed after
3 years ago
Sander van Grieken
d6403400bc
qml: remove leftover commented code
3 years ago
Sander van Grieken
1a263b46be
qml: keep QEAmount instances in qechanneldetails,
...
use millisat amounts for local/remote capacity and can send/receive,
refactor channel capacity graphic to ChannelBar and use that as well
in ChannelDetails
3 years ago
Sander van Grieken
778d5f456a
qml: swap progress gimmick
3 years ago
Sander van Grieken
27cd7fe8a8
qml: deduplicate swap initiation, move to main.qml
3 years ago
Sander van Grieken
b0778d0281
qml: fix typo
3 years ago